Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Searching a Specific Record from DB !!

Searching a Specific Record from DB !!

Scheduled Pinned Locked Moved Visual Basic
databasealgorithmshelp
17 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Christian Graus

    Thank you - that is truly the most annoying post ever. Why are you using VB6 ? Do you have no choice, or do you just hate yourself ? It sounds to me like you're asking how to write basic SQL.

    Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

    A Offline
    A Offline
    AndrewVos
    wrote on last edited by
    #6

    Whats wrong with VB6?


    www.wickedorange.com www.andrewvos.com

    D J E P 4 Replies Last reply
    0
    • A AndrewVos

      Whats wrong with VB6?


      www.wickedorange.com www.andrewvos.com

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #7

      It's dead, not supported anymore, no updates, and you have to write everything from scratch that you would find quite easy to do using the .NET Framework in FAR less code.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      V 1 Reply Last reply
      0
      • A AndrewVos

        Whats wrong with VB6?


        www.wickedorange.com www.andrewvos.com

        J Offline
        J Offline
        Jeremy Falcon
        wrote on last edited by
        #8

        AndrewVos wrote:

        Whats wrong with VB6?

        Not much, the real problem is with the monkeys that use it. :-D

        Jeremy Falcon Oatmeal Engine[^]

        1 Reply Last reply
        0
        • V Vikrant Badhai

          Hi, I am Developing a software using VB6.0 as Frontend and MSAccess as Backend. I have used ADODC component and ODBC connection string to connect to DB. I am looking for a code to SEARCH THE DB for a specific record in a specific field and then DISPLAY THE SAME RECORD in the corresponding objects in the Frontend. For e.g:- Suppose, if I gave criteria as Resolution Number = 143162216 using a TextBox, then the code should search the entire table under the column named 'Resolution_Number' and if that No. is found, then the whole information regarding that Resolution Number is displayed at the frontend application (VB6.0) in that specific object,e.g:- for 'User Name' I have used a TextBox, then the 'Name' in the table should be displayed in that TextBox, for 'Type Of User' I have used a ListBox, then the 'User Type' from the table must be displayed in that ListBox. I tried the 'Find' property of the 'RecordSet' object, but it did not worked properly. Also i tried the assignment operator(=) to assign the value of the field in the table to the corresponding object (Textbox, ListBox,etc.), but that also didn't worked. Awaiting for help.

          Thanx & Regards. Success is not a Destination, ... But a Journey !!

          S Offline
          S Offline
          Shog9 0
          wrote on last edited by
          #9

          Why do you use bold text and caps in that manner? :suss: When I do that, it's because i want to annoy the person i'm writing to. Do you want to annoy us? All of us? 'Cause this is a public board, compadre - when you post, you're addressing each and every one of the readers. And addressing us in this way is a sure way to make new enemies. :^)

          But who is the king of all of these folks?

          V 1 Reply Last reply
          0
          • V Vikrant Badhai

            Hi, I am Developing a software using VB6.0 as Frontend and MSAccess as Backend. I have used ADODC component and ODBC connection string to connect to DB. I am looking for a code to SEARCH THE DB for a specific record in a specific field and then DISPLAY THE SAME RECORD in the corresponding objects in the Frontend. For e.g:- Suppose, if I gave criteria as Resolution Number = 143162216 using a TextBox, then the code should search the entire table under the column named 'Resolution_Number' and if that No. is found, then the whole information regarding that Resolution Number is displayed at the frontend application (VB6.0) in that specific object,e.g:- for 'User Name' I have used a TextBox, then the 'Name' in the table should be displayed in that TextBox, for 'Type Of User' I have used a ListBox, then the 'User Type' from the table must be displayed in that ListBox. I tried the 'Find' property of the 'RecordSet' object, but it did not worked properly. Also i tried the assignment operator(=) to assign the value of the field in the table to the corresponding object (Textbox, ListBox,etc.), but that also didn't worked. Awaiting for help.

            Thanx & Regards. Success is not a Destination, ... But a Journey !!

            J Offline
            J Offline
            Jeremy Falcon
            wrote on last edited by
            #10

            Vikrant Badhai wrote:

            Awaiting for help.

            Get yourself a book on SQL and use Google for ADO. That Find method is only going to work on a result set AFTER the DB was queried (this may make a difference depending on how the recordset was created). Most of this should be covered in just about any beginner's text. Also, VB6 is dying (a lot is still in use as old code). If you have to use VB, you may wanna look into VB.NET instead.

            Jeremy Falcon Oatmeal Engine[^]

            P 1 Reply Last reply
            0
            • A AndrewVos

              Whats wrong with VB6?


              www.wickedorange.com www.andrewvos.com

              E Offline
              E Offline
              Eytukan
              wrote on last edited by
              #11

              I think ONLY I got you JOKE


              OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus Best wishes to Rexx[^]

              1 Reply Last reply
              0
              • C Christian Graus

                Thank you - that is truly the most annoying post ever. Why are you using VB6 ? Do you have no choice, or do you just hate yourself ? It sounds to me like you're asking how to write basic SQL.

                Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                E Offline
                E Offline
                Eytukan
                wrote on last edited by
                #12

                Why are you using VB6 ? Because that's the only development product supported by Microsoft. And they have planned to support it till 3020. That's worth learning VB6.0. If you haven't started learning it,I can say your future is at stake! :sigh:


                OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus Best wishes to Rexx[^]

                1 Reply Last reply
                0
                • V Vikrant Badhai

                  Hi, I am Developing a software using VB6.0 as Frontend and MSAccess as Backend. I have used ADODC component and ODBC connection string to connect to DB. I am looking for a code to SEARCH THE DB for a specific record in a specific field and then DISPLAY THE SAME RECORD in the corresponding objects in the Frontend. For e.g:- Suppose, if I gave criteria as Resolution Number = 143162216 using a TextBox, then the code should search the entire table under the column named 'Resolution_Number' and if that No. is found, then the whole information regarding that Resolution Number is displayed at the frontend application (VB6.0) in that specific object,e.g:- for 'User Name' I have used a TextBox, then the 'Name' in the table should be displayed in that TextBox, for 'Type Of User' I have used a ListBox, then the 'User Type' from the table must be displayed in that ListBox. I tried the 'Find' property of the 'RecordSet' object, but it did not worked properly. Also i tried the assignment operator(=) to assign the value of the field in the table to the corresponding object (Textbox, ListBox,etc.), but that also didn't worked. Awaiting for help.

                  Thanx & Regards. Success is not a Destination, ... But a Journey !!

                  P Offline
                  P Offline
                  Paul Conrad
                  wrote on last edited by
                  #13

                  Vikrant Badhai wrote:

                  I am Developing a software using VB6.0 as Frontend and MSAccess as Backend.

                  why? VB6 is dead and no longer supported by Microsoft, and Access is better replaced by SQL Server 2005 Express. You really should update your skill set top more upto the moment tools and technology :-D

                  "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                  1 Reply Last reply
                  0
                  • A AndrewVos

                    Whats wrong with VB6?


                    www.wickedorange.com www.andrewvos.com

                    P Offline
                    P Offline
                    Paul Conrad
                    wrote on last edited by
                    #14

                    VB6 is no longer supported. Moving up to VB.NET is Microsoft's intentions these days.

                    "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                    1 Reply Last reply
                    0
                    • J Jeremy Falcon

                      Vikrant Badhai wrote:

                      Awaiting for help.

                      Get yourself a book on SQL and use Google for ADO. That Find method is only going to work on a result set AFTER the DB was queried (this may make a difference depending on how the recordset was created). Most of this should be covered in just about any beginner's text. Also, VB6 is dying (a lot is still in use as old code). If you have to use VB, you may wanna look into VB.NET instead.

                      Jeremy Falcon Oatmeal Engine[^]

                      P Offline
                      P Offline
                      Paul Conrad
                      wrote on last edited by
                      #15

                      Jeremy Falcon wrote:

                      VB6 is dying

                      Can someone put it out of its misery?

                      "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                      1 Reply Last reply
                      0
                      • D Dave Kreskowiak

                        It's dead, not supported anymore, no updates, and you have to write everything from scratch that you would find quite easy to do using the .NET Framework in FAR less code.

                        A guide to posting questions on CodeProject[^]
                        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                             2006, 2007

                        V Offline
                        V Offline
                        Vikrant Badhai
                        wrote on last edited by
                        #16

                        The major problem is that i have a low config computer. It does not support .NET and SQL. It becomes too heavy if i install .NET. that's why i am using VB 6.0 and Access.and i know i'll be able to convert it into .NET project afterwards, but till then i have to use VB 6.0 and Access.

                        Thanx & Regards. Success is not a Destination, ... But a Journey !!

                        1 Reply Last reply
                        0
                        • S Shog9 0

                          Why do you use bold text and caps in that manner? :suss: When I do that, it's because i want to annoy the person i'm writing to. Do you want to annoy us? All of us? 'Cause this is a public board, compadre - when you post, you're addressing each and every one of the readers. And addressing us in this way is a sure way to make new enemies. :^)

                          But who is the king of all of these folks?

                          V Offline
                          V Offline
                          Vikrant Badhai
                          wrote on last edited by
                          #17

                          i don't want to annoy anyone. i am using bold text to show the importance of that sentence. for e.g:- i use bold text for the name of a textbox object, so that all should be able to recognise that it is the name of the textbox. i think all of u misunderstood me. And another major problem is that i have a low config computer. It does not support .NET and SQL. It becomes too heavy if i install .NET. that's why i am using VB 6.0 and Access.and i know i'll be able to convert it into .NET project afterwards, but till then i have to use VB 6.0 and Access.

                          Thanx & Regards. Success is not a Destination, ... But a Journey !!

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups