command button error?

E

emmy128

what does this mean

compile error
ambiguous name detected: new_entry_click

i created the command button with a wizard, why is it wrong???
 
K

Kevin Sprinkel

This error occurs when Access can't match the name of the
procedure with the name of any control. Is your command
button named "new_entry"? If it's only newentry, remove
the extra underscore, and it should compile.

HTH
Kevin Sprinkel
 
F

fredg

what does this mean

compile error
ambiguous name detected: new_entry_click

i created the command button with a wizard, why is it wrong???

You probably already have existing code with the same name.

When you delete a command button that has attached code, the button is
deleted but the code is not. If you then add another button with the
same name, you now have 2 click events with the same name and Access
gives you that "ambiguous name" error.
Delete the previous code.
 
Top