Mick Peters
Board Regular
- Joined
- May 18, 2015
- Messages
- 93
Hi I am trying to use just a scanner to operate a in out booking system so there is no need for keyboard or mouse skills by the users, I will simply provide a barcode for in and another for Out. I have 3 user forms 1 for booking in, 1 for booking out and a 3rd which I would like to use to open the correct user form depending on the text Scanned into the 1 text box. I have this code below but I am missing something as it will not open either of the user forms . Could anyone help please?
Code:
Private Sub TxtA_AfterUpdate()
If TxtTxtA.Value = "IN" Then
frmDatainput.Show
If TxtA.Value = "OUT" Then
frmDataReturn.Show
Else: MsgBox "Please enter either IN or OUT"
End If
End If
End Sub