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

Public Variables in Access97

Status
Not open for further replies.

bJohnnyv

IS-IT--Management
Dec 5, 2000
10
0
0
US
I need to define an variable in access97 that is available to everything. I tried using public but the variable is only available to that form and not the next form. Where do i define the public variable so it is always available. (this one should be easy but i am not getting it)
 
Put the variable in a Module, preface it with the global keyword:

Global gvarMyVariable

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top