A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

New Problem - Buttons



 
 
Thread Tools Display Modes
  #1  
Old May 13th, 2010, 05:00 PM posted to microsoft.public.access.forms
Vito
external usenet poster
 
Posts: 1
Default New Problem - Buttons

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
  #2  
Old May 13th, 2010, 06:16 PM posted to microsoft.public.access.forms
fredg
external usenet poster
 
Posts: 4,386
Default New Problem - Buttons

On 13 May 2010 16:00:59 GMT, Vito wrote:

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.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old May 14th, 2010, 11:18 PM posted to microsoft.public.access.forms
Victor[_7_]
external usenet poster
 
Posts: 5
Default New Problem - Buttons

Thank you...
It seems to work, so far.

Vito

fredg wrote in
:

On 13 May 2010 16:00:59 GMT, Vito wrote:

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.


  #4  
Old May 14th, 2010, 11:26 PM posted to microsoft.public.access.forms
Victor[_7_]
external usenet poster
 
Posts: 5
Default New Problem - Buttons

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

Vito/Victor


Victor wrote in news:Xns9D78BA38ACF77downhomecom@
216.151.153.165:

Thank you...
It seems to work, so far.

Vito

fredg wrote in
:

On 13 May 2010 16:00:59 GMT, Vito wrote:

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.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.