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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

types do not match

Status
Not open for further replies.

matrixknow

IS-IT--Management
May 3, 2007
78
If I try to run my code I got the error "types are not matching"
Code:
Set rst = CurrentDb.OpenRecordset(strSQL)

Has this to do with the references ? If yes, which one should you select out of the large library. I don't see why access is annoying the user with what should be basic functionalities as asking to generate a recordset.

I use access2000
 
You must declare rst like this:
Dim rst As DAO.Recordset

and add a reference to the Microsoft DAO 3.x Object Library

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
thanks, I found it also, you are still quicker ..

Code:
Dim rst As DAO.Recordset
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top