G
Guest
I am trying to store the User Name received from the system into a table so
users can see who entered the record when they view the record in inquiry
mode and/or in the report.
Code:
Private Sub acct_num_Exit(Cancel As Integer)
If Me!UserName Is Not Null Then
Me!entered_by = Me!UserName
End If
End Sub
When the code runs I receive the following error:
Run-time error'424' Object required
I a using the [=fOSUserName()] to retrieve the user name from the system.
Thanks in advance for any suggestions.
users can see who entered the record when they view the record in inquiry
mode and/or in the report.
Code:
Private Sub acct_num_Exit(Cancel As Integer)
If Me!UserName Is Not Null Then
Me!entered_by = Me!UserName
End If
End Sub
When the code runs I receive the following error:
Run-time error'424' Object required
I a using the [=fOSUserName()] to retrieve the user name from the system.
Thanks in advance for any suggestions.