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]")
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]")