Full Version: Using Variables across Modules
UtterAccess Forums > Microsoft® Access > Access Forms
is there a way to define and use variables across modules?
uch that if I click on a button in one Form1, it stores a variable, opens a search form, and then returns values to Form1, and if I click on a button in Form2, it stores a different value for that variable, opens the same search form, and returns that data to that Form2
You can create a standard module and declare a Public variable. From there, you can access and modify its contents anywhere in your app. HTH
This is an ongoing(ish) discussion about the issue.
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here.