How to call a sub from another form

In Access 2000 I am on a pop up form and want to call a Sub (Public) on my main form.  What is the correct syntax please?  (Off to a rough start this morning....)
snyperjAsked:
Who is Participating?
 
Rey Obrero (Capricorn1)Connect With a Mentor Commented:
first you have to make the Sub on the main form Public

Forms("NameOFMainForm").NameofSub
0
 
rockiroadsCommented:
You could just try this

Forms!myformname.mypublicprocedure
0
 
Rey Obrero (Capricorn1)Commented:
btw, the Main form must also be open to make the call to the Public Sub successful
0
 
rockiroadsCommented:
synperj, just curious, did what I post work? posted at the same time as cap, just beaten by secs, that cap is a quick typer :)
0
 
ErezMorCommented:
hi
it's Forms!FormNameHere.SubNameHere
 
good luck
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.