G
Guest
I am trying to open a recordset using the simple code below:
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("tblPayroll", dbOpenDynaset)
This is the identical code I am using in another Access Database (with the
exception of the table name) but with this one I get a "Type Mismatch" on
the "Set rst" line. The only thing I could think of was that I didn't have
my references set correctly but, they too are the same as in the other
database.
What obvious thing am I overlooking here?
Thanks,
Carl
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("tblPayroll", dbOpenDynaset)
This is the identical code I am using in another Access Database (with the
exception of the table name) but with this one I get a "Type Mismatch" on
the "Set rst" line. The only thing I could think of was that I didn't have
my references set correctly but, they too are the same as in the other
database.
What obvious thing am I overlooking here?
Thanks,
Carl