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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two events in one Current

Status
Not open for further replies.

Mayhem9

Technical User
Dec 19, 2009
155
AU
Hello,

As you can see by the title, I'm not really sure of the terminology (sorry) - but I am willing to learn!

I have tried the code in the FAQ on custom navigation (faq702-4655) to create my own record x of y counter but it keeps returning the following error:

The expression On Current you entered as the event property setting produced the following error: Ambiguous name detected: Form_Current.

I thought it may he occurring because I already have an event in current, so I tried deleting that and it worked!

So my question is, how do I run more than one event at a time?

Thanks,
Darren
 
You can only have one event procedure with that name (or any name).

private sub Form_Current()
call subA
call subB
end sub

private sub subA()
do some code
end sub

private sub subB()
do some code
end sub
 
Thanks - that actually makes sense but I doubt I would have figured it out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top