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

reference a sub from another form 1

Status
Not open for further replies.

neemi

Programmer
May 14, 2002
519
GB
please help. i have a sub which belong to form A. but I need to call it from form B. if you get my drift. This is so that when a record is added via a wizard like form. the sub is called to update the main form..
I just can't remember how to call this.

something like the below....

but it doesn't work

Call Forms.Form_frmMain.SetWeeks(Forms!frmMain!wkEnding)

help appreciated...
Neemi
 
Best practice is to put the sub in a module where it can be called by both forms.
 
thanks. was in a rush to get something done but I think i will just take my time and get that done.

remou... you are bcoming a bit of a mentor for me. LOL

I shall give you a star for being there for my dum (and lazy) questions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top