G
Guest
I want to create a new DAO Recordset as a Dynaset from an existing attached
table.
Dim rst As Recordset
strSQL = "SELECT ID,FirstName,LastName FROM [My Table]"
Set rst = db.OpenRecordset(strSQL, dbOpenDynaset, dbReadOnly)
The call to OpenRecordset gives me a "Type Mismatch" error. Changing rst to
a Variant returns something that is not a Recordset. Is there some
configuration I should have set up to enable DAO to work?
table.
Dim rst As Recordset
strSQL = "SELECT ID,FirstName,LastName FROM [My Table]"
Set rst = db.OpenRecordset(strSQL, dbOpenDynaset, dbReadOnly)
The call to OpenRecordset gives me a "Type Mismatch" error. Changing rst to
a Variant returns something that is not a Recordset. Is there some
configuration I should have set up to enable DAO to work?