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!

Global variable

Status
Not open for further replies.

101287

MIS
Apr 8, 2006
189
US
I have an Access Database. I would like to define a couple of global variables that I can set up to different values across the project. However, I have define the Public variable in the declaratives section but when I compile VBA some variable are Null even though I have set up the values. Can you help me with this problem? Need to define global variable across the MS access project.

Thank you for help and guidance.

Luis
 
Each time the project is reinitialised (compile, End instruction, ...) all global variables are resetted.
You should execute your initialisation routine.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
To add with PHV's note..
Public variables that are accessible throughout the project is to declared in a module as public.

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top