New Problem - Buttons

  • Thread starter Thread starter Vito
  • Start date Start date
V

Vito

In 2007:

In a form I created a button, used the wizard to set it to go to next
record when clicked. When I click it, I get this:

The expression ON CLICK you entered as the event property setting produced
the following error: Ambiguous name detected: PRINT_CLICK.

Now, if I wrote the VBA/Macro, I could understand it not working if I made
a mistake, but this button was generated by ACCESS and doesn't work.

Same problem with Previous record button and Save Record button.


Thanks in advance,
Vito
 
In 2007:

In a form I created a button, used the wizard to set it to go to next
record when clicked. When I click it, I get this:

The expression ON CLICK you entered as the event property setting produced
the following error: Ambiguous name detected: PRINT_CLICK.

Now, if I wrote the VBA/Macro, I could understand it not working if I made
a mistake, but this button was generated by ACCESS and doesn't work.

Same problem with Previous record button and Save Record button.

Thanks in advance,
Vito

You can have only one Private Sub Print_Click() event code.

I would suspect that at one point you might have had a button named
Print, with a click event procedure, and then deleted that button...
without manually deleting it's Click event code.
Then you added another button, also named Print and VBA detects that
there are 2 Print_Click code events on that form's module.
Delete the previous code.
 
Thank you...
It seems to work, so far.

Vito

You can have only one Private Sub Print_Click() event code.

I would suspect that at one point you might have had a button named
Print, with a click event procedure, and then deleted that button...
without manually deleting it's Click event code.
Then you added another button, also named Print and VBA detects that
there are 2 Print_Click code events on that form's module.
Delete the previous code.
 
It seems cleaning up a few left over prt_click()s solved all my
problems. Thanks for the direction to look into.

Vito/Victor
 
Back
Top