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!

Running procedures in other modules

Status
Not open for further replies.

GaryRW

Programmer
Mar 8, 2002
67
GB
I'm trying to run a procedure in a module under a separate form, i.e. open a form, run a procedure but pass some variables to that procedure as well.

I can just use onload event and put the variables I want in a control on a form and refer to them that way - not very elegant. What's the syntax to run a procedure in another module and pass it variables???

thanks for any help in advance.
 
First off, if you're passing variables to something, it is a FUNCTION.

Secondly, if the function is in a standard MODULE (e.g. not in a form or report) you can call if from anywhere.

Pass it the values, and set the return value in an appropriatly typed variable

FUBAR = GetStatus(MyProject) Ex-JimAtTheFAA
78.5% of all statistics are made up on the spot.
Another free Access forum:
More Neat Access stuff at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top