Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenRecordset etc. Access 2000

Status
Not open for further replies.

harding

Technical User
Jul 23, 2002
4
0
0
NZ
I'm updating a database that was created in an older version.

In that database, I had created a recordset in order to perform some searching through a table, etc.

Before, I successfully used the pattern:

Dim dbs as Database
Dim rstX as Recordset
Set dbs = CurrentDb
Set rstX = dbs.OpenRecordset("tblDATA")
' do stuff
rstX.Close

etc.

This doesn't seem to work anymore. The help files are a bit confusing. Can someone give me an Access 2000 equivalent of the above? I'm having some trouble with the new object / method conventions.

Thank you.
 
Dim dbs as DAO.Database
Dim rstX as DAO.Recordset

may solve the problem
 
Thanks thekon.
Your answer didn't work at first, but led me down the right path. (I didn't have the DAO object library referenced in the first place). All works now. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top