Same Global Variable Name/ 2 Access Apps?

G

Guest

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.
 
D

Douglas J Steele

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.
 
D

David C. Holley

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.
 
M

Marshall Barton

Phill said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top