Command Button Error in every form

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

I have created multiple forms with identical command
buttons on each form. The command buttons were created
seperatly in each form. The same error appears on every
click when selecting a command button in any form. The
error is "complier error: Ambiguous name detected:
Close_Database_Click". How is it this error can be
eliminated?
 
The error means that you have two procedures in the form's code module with
the same name (Close_Database_Click). Open the VBA editor and delete one of
the procedures.
 
Back
Top