Error 13

J

Joe

I wrote a function that deals with two different tables. However I get an
Error 13
Type Mismatch when I try to set the Recordset.

Here is the code.

Any ideas? This same code works fine in another database.

Dim MyDB As Database
Dim MySet As Recordset
Dim MySet2 As Recordset

Set MyDB = CurrentDb
Error --> Set MySet = MyDB.OpenRecordset("Select * from [Table1]")
Error --> Set MySet2 = MyDB.OpenRecordset("Select * from [Table2]")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top