Environ Question

D

DS

I'm trying to set the value of a field. TxtTerminalID with this coding
but it's not grabbing the terminalD.
I tried the default Value and the onOpen event, neither works.


Environ("TxtTerminalID")

Any HelAppreciated.
DS
 
G

Granny Spitz via AccessMonster.com

DS said:
I'm trying to set the value of a field. TxtTerminalID with this coding
but it's not grabbing the terminalD.

If the environment variable is terminalD and the text box bound to a column
is named TxtTerminalID, then you'd use it like this:

Me!TxtTerminalID.Value = Environ("terminalD")
 
D

DS

Granny said:
If the environment variable is terminalD and the text box bound to a column
is named TxtTerminalID, then you'd use it like this:

Me!TxtTerminalID.Value = Environ("terminalD")
Thanks, This actually worked.
Me.TxtTerminalID.Value = Environ("ComputerName")
 
D

DS

Jeff said:
Environ$("txtterminalID")
Thanks, This actually worked.
Me.TxtTerminalID.Value = Environ("ComputerName")
but...
What is the $ sign after Eviron?
Thanks
DS
 
Top