I've been used to Access 97 and just went to Access 2002 and need some help on a basic issue. I'm trying to create and open a recordset, but I'm getting errors. Here's the partial code.
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("Holidays", dbOpenDynaset)
These are the first two lines of the code and it doesn't get past this point. I'm getting Run-time error 3001 Invalid Argument at the 2nd line (the "set" statement).
If I remove the 'dbOpenDynaset' argument, then I get Run-time error 13 Type Mismatch at the same line.
Something different in XP?
TIA
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("Holidays", dbOpenDynaset)
These are the first two lines of the code and it doesn't get past this point. I'm getting Run-time error 3001 Invalid Argument at the 2nd line (the "set" statement).
If I remove the 'dbOpenDynaset' argument, then I get Run-time error 13 Type Mismatch at the same line.
Something different in XP?
TIA