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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to search database usig ado in vc++??

how to search database usig ado in vc++??

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++databasehelptutorial
5 Posts 3 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.
  • S Offline
    S Offline
    smartymanav
    wrote on last edited by
    #1

    Hiii i have used ADO for linking my database in vc++... how can i add a function which searcges for a particular value in a field.... please help manav

    P T 2 Replies Last reply
    0
    • S smartymanav

      Hiii i have used ADO for linking my database in vc++... how can i add a function which searcges for a particular value in a field.... please help manav

      P Offline
      P Offline
      Phil J Pearson
      wrote on last edited by
      #2

      Use an ADO recordset with a query like "SELECT * FROM [Table] WHERE [FIELD]=value;"


      The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

      T 1 Reply Last reply
      0
      • P Phil J Pearson

        Use an ADO recordset with a query like "SELECT * FROM [Table] WHERE [FIELD]=value;"


        The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        :laugh::laugh::laugh::laugh: i doubt you code this directly in C++...


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        P 1 Reply Last reply
        0
        • S smartymanav

          Hiii i have used ADO for linking my database in vc++... how can i add a function which searcges for a particular value in a field.... please help manav

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          you could use Carlos Antollini's ADO Classes[^] cheers,


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          1 Reply Last reply
          0
          • T toxcct

            :laugh::laugh::laugh::laugh: i doubt you code this directly in C++...


            TOXCCT >>> GEII power
            [toxcct][VisualCalc]

            P Offline
            P Offline
            Phil J Pearson
            wrote on last edited by
            #5

            No, of course not! ;P You use a recordset, (coded in C++) which needs a query string like the one I showed.


            The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

            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