Using Access 2003, I've tried some of the examples in the archives but I'm not having any luck. All I want to do is capture the logon name of the person using the computer and then post it on a form in an unbound text box. I tried the example:
*************
Private Sub fDisplayMe()
Dim strMessage As String
strMessage = Environ("UserName")
Debug.Print strMessage
End Sub
*************
and it works in the immediate window but I can't seem to call it and pop it into the text box.
Any suggestions?
*************
Private Sub fDisplayMe()
Dim strMessage As String
strMessage = Environ("UserName")
Debug.Print strMessage
End Sub
*************
and it works in the immediate window but I can't seem to call it and pop it into the text box.
Any suggestions?