Error when form opens

Elphaba31

Registered User.
Local time
Yesterday, 21:49
Joined
Mar 24, 2010
Messages
17
Hello Gurus,

I have been tasked with correcting issues with our upgrade and essentially know very little about Access 2007 or Visual Basic. Here is my current issue: when we open one of our .accdb it throws this error:

"Compile error: Method or data not found"

(see attached jpeg)

Can anyone pass on some pointers of how to fix this? A good tutorial would be nice, I'm learning Access 2007 & VB by troubleshooting these errors, so it's peice by peice.

THANK YOU in advance for your assistance!!
 

Attachments

  • HMGPImage.jpg
    HMGPImage.jpg
    71.2 KB · Views: 142
For "Rs.FindFirst.....
in OpenRecordset put ... dbOpenDynaset instead of dbOpenSnapshot.
 
First, THANK YOU for the fast reply!

Ok I changed dbOpenSnapshot to dbOpenDynaset and changed RS.FindFirst to RS.Find (just changing Snapshot to Dynaset didn't work), now I still get the same error but it highlights RS.NoMatch....
 
In your code editor click "Tools"... "References" see if anything says "missing"
 
I would change your recordset declaration to

Dim RS As DAO.Recordset

because it might be thinking it is looking for an ADO recordset instead.
 

Users who are viewing this thread

Back
Top Bottom