I am receiving a "Type Mismatch (Error 13) whenever I dimension a variable as a recordset. For example:
Dim dbs As Database
Dim rst As Recordset
Set dbs = CurrentDb
The error occurs When I try to do a statement like:
Set rst = dbs.OpenRecordset("qryname or SQL", dbOpenSnapshot)
Up until now, I have gotten around it by Dimensioning the recordset as a variant. This work-around has served well up until now. Lately, I've found certain functions like "AbsolutePosition" do not been work with it set up like this. Does anyone have any ideas as to why Access might give me a "Type mismatch" error?
StephenS
Dim dbs As Database
Dim rst As Recordset
Set dbs = CurrentDb
The error occurs When I try to do a statement like:
Set rst = dbs.OpenRecordset("qryname or SQL", dbOpenSnapshot)
Up until now, I have gotten around it by Dimensioning the recordset as a variant. This work-around has served well up until now. Lately, I've found certain functions like "AbsolutePosition" do not been work with it set up like this. Does anyone have any ideas as to why Access might give me a "Type mismatch" error?
StephenS