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

Same Error On ALL Command Buttons on Form

Status
Not open for further replies.

cyberbiker

Programmer
Joined
Mar 16, 2001
Messages
431
Location
US
I hate to sound dumb, but I am now receiving an error on all the command buttons on a single form.
"The expression On Click you entered as the event property setting you entered produced the following error:
Variable not defined.
The expression may not result in a macro etc, etc.

The form is opened from a command button on another form and opens fine that way with no error messages.
When I try to debug, I never reach any of my break points period, even if I only have a single line of code in the event procedure.
I have created the command buttons using the "wizard" and have tried creating new controls just for testing and get the same results.
I have other forms that the controls work fine on and I am failing to see the difference.
My guess is that I have something "goofy" with the form itself.
Appreciate everybodys patience.

Terry (cyberbiker)
 
One thought. Check the module behind the form and make sure that you do not have any of the procedures duplicated. If you have a button, delete it, and add it again the actual event procedure may still be there.

Just a thought... ljprodev@yahoo.com
ProDev, MS Access Applications B-)
 
Great Idea and thanks a lot, but it is not the problem. I double checked it to be sure. Any other ideas?. Terry (cyberbiker)
 
I found that issue. I need to do some reading I guess on the basic concepts of data base programming this weekend.
Sorry for the dumb questions.
This was what I usually refer to as "craniorectal disease" Terry (cyberbiker)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top