Insert computer name

jibb

Registered User.
Local time
Yesterday, 16:31
Joined
Dec 1, 2011
Messages
93
Hello,

How can i return the name of the computer currently using a database into a form field?

Many Thanks
 
Thanks,

How do i get that to display in a cell in a form?
 
Paste this function in a Standard module of your project

Code:
Function GetComputer()
GetComputer = VBA.Environ("Computername")
End Function

Then in the controlsource of an unbound control on yor form you put in this:

=GetComputer()

JR
 

Users who are viewing this thread

Back
Top Bottom