New Problem - Buttons

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
 
F

fredg

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.
 
V

Victor

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.
 
V

Victor

It seems cleaning up a few left over prt_click()s solved all my
problems. Thanks for the direction to look into.

Vito/Victor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top