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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

command buttons will not run "On Click" event

Status
Not open for further replies.

jdmack2000

Programmer
Jul 1, 2002
7
US
If someone can help me that would be great!

I have this form in Access 97, that every command button I have regardless if there is code in the “on click” even or not, I get the following error:

The Expression On Click you entered as the event property setting produced the following error” User-defined type not defined.

* The expression may not result in the name of a macro, the name of a user-defined function, or [Event procedure]



* There may have been an error evaluating the function, event or macro

Even if I make a new command button I get the same message box with the above error message. Is there some setting I need to change so I can run the code in the “on click” even?

Thanks in advance!

JD
 
Try closing the form and coming back into it. I get this alot when I'm developing, and I think it just needs to refresh itself.
 
Well, This form has been acting this way for a few days. I've has restarted my computer serveral times; I still the same error.
JD
 
I found it! I had a misspelled user defined type in just one event which caused EVERY event not to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top