Environ(“MyEnvâ€)

J

JIM.H.

I am using MS Access 2003. I have this in the code

myVar=Environ(“MyEnvâ€)

and I see this works, however when I put a textbox in a form and set source
control as Environ(“MyEnvâ€), it seems it does not work.
What is problem?
Thanks,
 
D

Dirk Goldgar

JIM.H. said:
I am using MS Access 2003. I have this in the code

myVar=Environ("MyEnv")

and I see this works, however when I put a textbox in a form and set
source control as Environ("MyEnv"), it seems it does not work.
What is problem?

Did you precede the funtion call, in the controlsource, with an equals
sign:

=Environ("MyEnv")

?
 
Top