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. Database & SysAdmin
  3. Database
  4. ADODB Recordset - using ActiveX Data Object in Access 2007

ADODB Recordset - using ActiveX Data Object in Access 2007

Scheduled Pinned Locked Moved Database
databasecomhelpquestion
1 Posts 1 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.
  • J Offline
    J Offline
    john john mackey
    wrote on last edited by
    #1

    Hi. I wrote some VBA underlying code for an Access 2000 application and used to create/open recordsets in the following manner:

    Dim rstLookupFixedAreas As New ADODB.Recordset
    rstLookupFixedAreas.Open "tbl\_FixedAreas", CurrentProject.Connection, adOpenStatic, adLockOptimistic
    
    rstLookupFixedAreas.MoveFirst
    Do Until (rstLookupFixedAreas.EOF)
        strValueList = strValueList & CStr(rstLookupFixedAreas.Fields(0)) & ";" & rstLookupFixedAreas.Fields(1) & ";"
        rstLookupFixedAreas.MoveNext
    Loop
    
    comboFixedArea.RowSource = strValueList
    'comboFixedArea.DefaultValue = 1
    
    rstLookupFixedAreas.Close
    

    I did this by including the reference to Microsoft ActiveX Data Object 2.1 Library. Now that I am using Access 2007, is there a more current method to do the same type of "recordset" operations? (or should i continue with including ADO 2.1 Library) I want to use either a record index or Find method to get my record pointer. Thank you for the help. John John

    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