Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Message

Status
Not open for further replies.

pthakar

Programmer
Feb 28, 2003
38
US
I have a form 'fmdetail' and I designed a button to close that form. On clicking that button I got following error message.
"The expression on click you entered as the event property setting produced the following error : Object or class doesnot support the set of events.
* the expression may not result in the name of macro, the name of a user defined function, or [Event procedure].
* There may have been an error evaluating the function, event or macro."

Does any body know what is this all about. I just wanted to have a button that will close the form.

Thanks in advance
 
Sounds like your not refering to something right. For the button, in the on click property, make sure you've got one of these:

Macro: Close (Leave all the fields blank)
Code: DoCmd.Close

Either of these should work.

HTH

-Patrick

Nine times out of ten, the simplest solution is the best one.
 
thank you patrick,
It worked I removed the procedure and write a macro
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top