I used this code to get it to work on mine, but of course this was a LostFocus() Event but it works for me.
Code:
Dim t_name
Dim t_cbo_name
Dim strsql As String
Dim rst As Recordset
Dim db As Database
Dim rec As Recordset
Set db = CurrentDb
Set rec = db.OpenRecordset("tbl_john")
Do Until rec.EOF
With rec
If Trim(![Windows_Name]) = Trim(Me.txt_winusername) Then
t_name = ![id]
t_cbo_name = !Employee_Name
If IsNull(Me.Record_Input_By) Then
Me.Record_Input_By = t_cbo_name
Else
End If
Else
End If
.MoveNext
End With
Loop
Set rec = Nothing
Me.WinUserName_box = txt_winusername
Me.date_updated = Now()
'Debug.Print t_name, Me.txt_winusername, t_cbo_name
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Exit_issues_LostFocus:
Exit Sub