It actually pulls the username from the network login with a function. So I have a table that has user and username.
I type user and username like (Joe, joeusername)
Then the query uses the function in the critera to filter only the record that matches the network login so you are left with the one record (Joe, joeusername) I would just use the same function to filter the form records, but those records are listed as "joe" not "joeusername"
I hope that makes sense.
Here is the username function i'm using. It may be of use for someone, who knows.
Code:
Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _
"GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Function fOSUserName() As String
' Returns the network login name
Dim lngLen As Long, lngX As Long
Dim strUserName As String
strUserName = String$(254, 0)
lngLen = 255
lngX = apiGetUserName(strUserName, lngLen)
If (lngX > 0) Then
fOSUserName = Left$(strUserName, lngLen - 1)
Else
fOSUserName = vbNullString
End If
End Function