Hi Everyone,
Self teaching and fairly new to this, I need some help with validating a field in a form which will hold a Barcode reference(not the Barcode active x) which will be scanned in. The first 2 lead characters of the 8 digit barcode ref which can be a combination of numbers or letters identify a type of device, if the device type is entered in its field I need to know if the Barcode is of the correct type for this device, I have been playing with something like this in the Before Update event,
If Me.Device Type = "6000/LED" Then
Me.Device_Label.Left (, 2) = "82"
Else
MsgBox "Type Error! Please scan a barcode that matches this Device Type"
End if
There are about 15 different Device Types in a column in a different underlying table from that of the form with a relationship called "Equipment" and the lead characters have been entered in a column next to Device_Type. How can I crack this, Is my approach wrong?
Many thanks! Graham63
Self teaching and fairly new to this, I need some help with validating a field in a form which will hold a Barcode reference(not the Barcode active x) which will be scanned in. The first 2 lead characters of the 8 digit barcode ref which can be a combination of numbers or letters identify a type of device, if the device type is entered in its field I need to know if the Barcode is of the correct type for this device, I have been playing with something like this in the Before Update event,
If Me.Device Type = "6000/LED" Then
Me.Device_Label.Left (, 2) = "82"
Else
MsgBox "Type Error! Please scan a barcode that matches this Device Type"
End if
There are about 15 different Device Types in a column in a different underlying table from that of the form with a relationship called "Equipment" and the lead characters have been entered in a column next to Device_Type. How can I crack this, Is my approach wrong?
Many thanks! Graham63
