Hi Everyone! I'm a beginner access user and i'm working on this project where users can check-out and check-in scan guns through a form.
I'm using below code in Equipment_out in Before Update event to check for duplicate check-outs.
Dim Answer As Variant
Answer = DLookup("[Scan_Gun_Out]", "Query_Out", "[Scan_Gun_Out] = '" & Me.Scan_Gun_Out & "'")
If Not IsNull(Answer) Then
MsgBox "This Scan Gun has already been Checked-Out !!!" & vbCrLf & "Please notify FGI coordinator", vbCritical + vbOKOnly + vbDefaultButton1, "Duplicate"
Cancel = True
Else:
End If
Where i'm having problem is to check back in a scan gun and make it available to check-out again. I'm sure i need a new code and thats where i need help.
Thanks again for helping me in this and i really appreciate your time and help.
I'm using below code in Equipment_out in Before Update event to check for duplicate check-outs.
Dim Answer As Variant
Answer = DLookup("[Scan_Gun_Out]", "Query_Out", "[Scan_Gun_Out] = '" & Me.Scan_Gun_Out & "'")
If Not IsNull(Answer) Then
MsgBox "This Scan Gun has already been Checked-Out !!!" & vbCrLf & "Please notify FGI coordinator", vbCritical + vbOKOnly + vbDefaultButton1, "Duplicate"
Cancel = True
Else:
End If
Where i'm having problem is to check back in a scan gun and make it available to check-out again. I'm sure i need a new code and thats where i need help.
Thanks again for helping me in this and i really appreciate your time and help.