Environ Question

  • Thread starter Thread starter DS
  • Start date Start date
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
 
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")
 
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")
 
Jeff said:
Environ$("txtterminalID")
Thanks, This actually worked.
Me.TxtTerminalID.Value = Environ("ComputerName")
but...
What is the $ sign after Eviron?
Thanks
DS
 

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

Back
Top