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. C / C++ / MFC
  4. how execute query in access database with CRecordset file?

how execute query in access database with CRecordset file?

Scheduled Pinned Locked Moved C / C++ / MFC
databasehelpquestionannouncement
3 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.
  • L Offline
    L Offline
    Le rner
    wrote on last edited by
    #1

    hi all, i m using Access database with ODBC connection in my application. here i am generate a CRecordset derived Class for each table in Database. now here i fetch record here using while loop with movenext. this is slow in process. i want to use Query here to fast my process. please help anyone to execute query to fetch,insert or update record record in table. thanks in advance.

    V D 2 Replies Last reply
    0
    • L Le rner

      hi all, i m using Access database with ODBC connection in my application. here i am generate a CRecordset derived Class for each table in Database. now here i fetch record here using while loop with movenext. this is slow in process. i want to use Query here to fast my process. please help anyone to execute query to fetch,insert or update record record in table. thanks in advance.

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      Well, the first step is to create a query ( the easiest way would be to create it and test in the MS Access). The second step - create the recordset that supports update and insert operations. See MSDN article [^] for details.

      1 Reply Last reply
      0
      • L Le rner

        hi all, i m using Access database with ODBC connection in my application. here i am generate a CRecordset derived Class for each table in Database. now here i fetch record here using while loop with movenext. this is slow in process. i want to use Query here to fast my process. please help anyone to execute query to fetch,insert or update record record in table. thanks in advance.

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Le@rner wrote:

        this is slow in process.

        How are you measuring this?

        Le@rner wrote:

        please help anyone to execute query to fetch,insert or update record record in table.

        Did you bother to read the docs? They'll answer most, if not all, of your questions. I have an article here that shows how to create a read-only recordset. Other articles here.

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        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