Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Local computer name from VBA 1

Status
Not open for further replies.

LLBP

IS-IT--Management
Jan 31, 2002
39
US
How can I get the local computer name in my Access VB code?
 
=Environ("ComputerName")

will give you what you need unless you are using Access 2003 in SandBox mode, in which case you will need to create a wrapper for the Environ function.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top