Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Command Buttons (faq702-5307) for subforms

Status
Not open for further replies.

vitormrb

Technical User
Jul 28, 2007
3
PT
I have used the code in faq702-5307 to use custom command buttons successful with forms, but I’m getting the following error when I try to use it on sub forms:

Run Time error ‘2450’
The form ‘subfrmColocacoes’ referenced in a macro expression or vba code is not found

The ‘subfrmColocacoes’ is the name of my sub form. Which modifications must be done to put this code working in sub forms? The code is in faq702-5307 written by Beard36.

Who can help me please?
 
How are ya vitormrb . . .
vitormrb said:
[blue] . . . but I’m getting the following error [purple]when I try to use it on sub forms:[/purple][/blue]
The faq is setup to references forms and [blue]has to be changed to reference subforms![/blue]

How to refer to a control on a subform or subreport in Access

Calvin.gif
See Ya! . . . . . .

Be sure to see FAQ219-2884:
 
Ok, But how to do this? I'm note sure about which lines must be changed, and also the correct syntax. Could you give me an example?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top