Someone told be today that if you have two Access applications that have the
a Global (Public) variable defined with the same name, that they could
overwrite each other. I've always that that each instance of Access has it's
own memory blocks allocated and global variables stored in those blocks were
only for that instance of Access. Does anyone know which is correct? Thank
you.
Douglas J Steele - 05 Dec 2005 20:04 GMT
AFAIK, your understanding is correct. Setting a global variable X in
application 1 will not impact the value of global variable X in application
2. Along the same lines, user 1 setting the value of global variable X will
not impact the value of that variable in user 2's application.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Someone told be today that if you have two Access applications that have the
> a Global (Public) variable defined with the same name, that they could
> overwrite each other. I've always that that each instance of Access has it's
> own memory blocks allocated and global variables stored in those blocks were
> only for that instance of Access. Does anyone know which is correct? Thank
> you.
David C. Holley - 05 Dec 2005 20:47 GMT
Don't think so. Because it would mean that if you started two (or more)
instances of Access on the same PC that you would end up with assorted
conflicts between the two.
> Someone told be today that if you have two Access applications that have the
> a Global (Public) variable defined with the same name, that they could
> overwrite each other. I've always that that each instance of Access has it's
> own memory blocks allocated and global variables stored in those blocks were
> only for that instance of Access. Does anyone know which is correct? Thank
> you.
Marshall Barton - 05 Dec 2005 23:16 GMT
>Someone told be today that if you have two Access applications that have the
>a Global (Public) variable defined with the same name, that they could
>overwrite each other. I've always that that each instance of Access has it's
>own memory blocks allocated and global variables stored in those blocks were
>only for that instance of Access. Does anyone know which is correct? Thank
>you.
Maybe that person meant to say two different Modules instead
of two different Access applications.

Signature
Marsh
MVP [MS Access]