I have a text box that pulls the Windows User Id into a form, I need this to set once a new record is created and not to change when someone else views the record.
The user id is pulled via a module and this module is referenced in the default value field on the Data tab of the properties sheet.
Thanks in advance
The user id is pulled via a module and this module is referenced in the default value field on the Data tab of the properties sheet.
Code:
Public Function getWinUser() As String
getWinUser = Environ("UserName")
End Function
Thanks in advance