
Originally Posted by
June7
...As far as I remember, Access 2003 accommadated global variables...
That's correct!

Originally Posted by
June7
...I tried global variables but was aggravated...because if code execution is interrupted the variable loses value...
Also true! The new TempVars, introduced in 2007, supposedly resolved this problem.
Conversion , especially backward conversion, often has hiccups. I wonder if the problem doesn't lie with how you're setting the value of the Variable, rather than with the line
Text42.Value = gstruser
The syntax for doing some things, especially those associated with using Envir(), and such, changed between 2003 and 2007, I believe.
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007