The focus is set to the combo box it will detect the scan on it's own. Then I run this after update statement:
Private Sub cmbScan_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Dim intresult As Integer
Set rs = Me.Recordset.Clone
rs.FindFirst "[eventid] = " & Str(Nz(Me![cmbScan], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.signout.SetFocus
If Me.signout.Text = "" Then
Me.signout = Time()
Me.signoutdate = Now()
DoCmd.SetWarnings off
DoCmd.OpenQuery "qryAppendStatus"
Else
Me.signin = Time()
Me.signindate = Now()
'Me.signout = Me.signout
DoCmd.SetWarnings off
DoCmd.OpenQuery "qryNewUpdate"
End If
Me.rfid.SetFocus
The recordsource for the combobox is :
SELECT [sign out record].EventID, [sign out record].BadgeID, [sign out record].[Employee Name]
FROM [sign out record]
ORDER BY [sign out record].[Employee Name];