On Click error

artemisia

New member
Local time
Yesterday, 19:54
Joined
Jun 17, 2003
Messages
9
I created several buttons: Add New Customer, Find a Customer, Add New Order and Edit Order using the Command Button Wizzard.

The following message appears when I click each button:
The expression OnClick you entered as the event property setting produced the following error: Ambiguous name detected: Look Up Customer.
* 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.

What am I doing wrong?
Any ideas on how to fix this is appreciated.
Thank You!
 
You have two subroutines in your form's module that have the exact same name - removing the unnecessary one will remove the ambiguity over which routine to execute.
 
How should I do that.
I'm a newbee.:p
 
ALT+F11 opens visual basic editor --> search for your project (lefthand pane), then expand until 'Modules' --> 'Module1' becomes visible, doubleclick this node --> search for the ambigeous function or sub and remove one of them.

Hope you find it.
Regards, Yves
 
The events triggered by your buttons are not in Module1 but in your form's 'environment code' --> Node 'Microsoft Access Class Objects' --> Form_<your form>

My mistake.
 

Users who are viewing this thread

Back
Top Bottom