I have an access table with a column username
. I have multiple users that will use the database at different times and they will add rows to the table. But everytim
Create a public function as described here:
Public Function GetUserName() As String
' GetUserName = Environ("USERNAME")
' Environ("USERNAME") is easily spoofed, see comment by HansUp
GetUserName = CreateObject("WScript.Network").UserName
End Function
and use =GetUserName()
as default value for the control.