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!

Run-time error '13' in DAO

Status
Not open for further replies.

mfd777

Programmer
Sep 21, 1999
53
0
0
IE
When trying to open a recordset I keep on getting @Run-time error '13' Type mismatch error.

Code is very simple:
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb()
Set rst = db.OpenRecordset ("test", dbOpenSnapshot)



The @test@ query opens fine in the database window.
 
Solved problem. Needed to prefix declaration of recordset with DAO
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top