Ok tried this but it errors out on the MsgBox part. I want to be able to have it so after the employee scans thier badge it acknowledges it by saying Transacted Accepted and then thier name. The only thing they do is scan thier badge on this form so I don't know where else to put the code other that with the shift code.
Code:
Private Sub EmployeeNumber_AfterUpdate()
shift = DLookup("shift", "employeetbl", "employeeNumber=" & EmployeeNumber)
MsgBox "Transaction accepted " & DLookup("Employee Name", "employeetbl", "employeeNumber=" & EmployeeNumber)
End Sub