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

Global Variables

Status
Not open for further replies.

jaydy

MIS
Nov 9, 2003
27
PH
I am running an access program on two computers but only one of these computers have access in it, the other computer accesses the database through network sharing of files. i am also using global variables to track logging between users. I inserted a globalvariable currentuser in the module logger. everytime they login the current user changes. my question is if one computer changes the currentuser example, will this be overwritten by the other computer? will i be able to track two computers with one global variable? if not, how do i solve this?
 
Hi

The Global variable is 'Global' within the Instance of Access, since you have two Instances running, you have no problem, I would point out howver that CurrentUser() is a function within Acecss which returns the Lgged in user id (that is Access user, as in Access security, not Windows or Network user), therefore it is probably not a good idea to have a variable (global or local), with the same name.

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top