G
gvaughn
I trying to pull the user names from windows environ to use in an access
interface to log-in, log-out. I have some code:
Function UserNameWindows() As String
UserNameWindows = VBA.Environ("USERNAME") & "@" & VBA.Environ("USERDOMAIN")
End Function
but I am having trouble getting the field to call the function. How can I
get a username field in a tabel to call the function to get the windows user
name? ANy help would get appreciated
interface to log-in, log-out. I have some code:
Function UserNameWindows() As String
UserNameWindows = VBA.Environ("USERNAME") & "@" & VBA.Environ("USERDOMAIN")
End Function
but I am having trouble getting the field to call the function. How can I
get a username field in a tabel to call the function to get the windows user
name? ANy help would get appreciated