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!

VBA - Passing variable to next form

Status
Not open for further replies.

RufussMcGee

Technical User
Jan 7, 2005
117
US
How do I pass variables from one form to the next?

Thanks
 
Hi Rufuss,

Depends. There's lots of ways to do this, if you are running the code from a module, and your variable is defined within your module, then your form should be able to access this variable, if the variable is defined within the code portion of your first module, you will need to pass it as a variable to your form open/load event.

HTH
Todd
 
Another option is to make the variable global in scope and have it available to any module also. Another option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top