H
HumanJHawkins
I have made a VB funtion for the "On Lost Focus" event of a text box. The
code is this:
Private Sub CABApprovedDate_LostFocus()
If IsNull(CABApprovedDate.Value) Then
CABApprovedBy = ""
Else
CABApprovedBy = CurrentUser()
End If
End Sub
It is supposed to put the username of the current user into another field.
However, no matter who logs in, it always puts "Admin" into the box.
Two problems:
1. I have verified that these users are not admins... They have only
public access and no server roles, ownership, etc.
2. Even if they were admins, this would be a problem, as I want their
username to be entered... It does me no good unless I know who made the
entry.
Thanks in advance for any help.
code is this:
Private Sub CABApprovedDate_LostFocus()
If IsNull(CABApprovedDate.Value) Then
CABApprovedBy = ""
Else
CABApprovedBy = CurrentUser()
End If
End Sub
It is supposed to put the username of the current user into another field.
However, no matter who logs in, it always puts "Admin" into the box.
Two problems:
1. I have verified that these users are not admins... They have only
public access and no server roles, ownership, etc.
2. Even if they were admins, this would be a problem, as I want their
username to be entered... It does me no good unless I know who made the
entry.
Thanks in advance for any help.