C
CityGuy
Hi,
I am a recent student of VBA in Access. Look to this web site alot
for help in many areas. I need help with a stange problem.
In the 'Tools | Reference ' settings I have selected the DAO 3.6 Library
In my code I use the following definition statements:
Dim db as DAO.Database
Dim CurrYr as DAO.Recordset
Later on in my code I do the following:
Set db = CurrentDb()
Set CurrYr = db.OpenRecordset("tblCurrentYear", dbOpenDynaset)
'default locking - pessimistic
'
With CurrYr
.MoveFirst <--- debug stops here, shows error message of:
'Object doesn't support this property of
method'
I know from the help menu that .MoveFirst is a DAO method.
- I have tried de-select the DAO 3.6 reference, then reconnecting it.
- I have tried de-selecting the DA0 3.6 referece, saving & compacting .mdb
file
then reconnecting DAO 3.6 reference, saving & compacting the .mdb file
I still get the same error. Help!!!
I am a recent student of VBA in Access. Look to this web site alot
for help in many areas. I need help with a stange problem.
In the 'Tools | Reference ' settings I have selected the DAO 3.6 Library
In my code I use the following definition statements:
Dim db as DAO.Database
Dim CurrYr as DAO.Recordset
Later on in my code I do the following:
Set db = CurrentDb()
Set CurrYr = db.OpenRecordset("tblCurrentYear", dbOpenDynaset)
'default locking - pessimistic
'
With CurrYr
.MoveFirst <--- debug stops here, shows error message of:
'Object doesn't support this property of
method'
I know from the help menu that .MoveFirst is a DAO method.
- I have tried de-select the DAO 3.6 reference, then reconnecting it.
- I have tried de-selecting the DA0 3.6 referece, saving & compacting .mdb
file
then reconnecting DAO 3.6 reference, saving & compacting the .mdb file
I still get the same error. Help!!!