Method or data member not found

JamesJoey

Registered User.
Local time
Today, 13:41
Joined
Dec 6, 2010
Messages
642
When I debug from the module window I get the following error:
'Method or data member not found' on trhe following line with ReminderID highlighted.

DoCmd.OpenForm "frmRemindersEdit", OpenArgs:=Me.ReminderID

This is the code behind a command button.

The code works fine when I click the button, no errors... nothing.

But when I debug I get the error.

The same code and forms are in another database and I don't get the debug error.

Why oh why does this happen???

James
 
Not enough info to go on. To answer, we would need to see the form that has the command button and the form that is being opened and all record sets involved.

If it's working then you can leave it be or post your DB here so that i can have a look...
 
I can cause those exact symptoms by putting that line of code in an object that does not expose the member "ReminderID."
 
There was some code I was trying and left.
I was trying to use The DoCmd.OpenForm with a long SELECT statement which wasn't working. I removed it and it no error.
Not sure how it wasn't seen by the debugger.
 

Users who are viewing this thread

Back
Top Bottom