hi @bobbybob
Consider this:
- you have a Barcode Scanner control: BarcodeScanner1
- you have a ComboBox control: cbSelectBarcCodeLocation
- you have a label: lblSelectLocationBarCode
With the barcode scanner control set the OnScan = Set(varScannedValue, BarcodeScanner1.Value).
Once you selected the control and scanned you image the value of the code will be stored in the variable varScannedValue.
Now that you have the scanned value you want to check whether the barcode is in the right place.
Assumption:
You have a table which have a column called location and an associated barcode. something like this
location | barcode
Place 1 | 123456
Place 2 | 111111
Place 3 | 555445
Place 4 | 123456
This is as source to a dropdown and the location as the primary text.
have the following for cbSelectBarcCodeLocation's:
Item = yourReferenceTable
OnChange = Set(varReferencedValue, Self.barcode)
Once a location is selected the variable will store the associated barcode.
All you have to do now is to compare varScannedValue = varReferencedValue
If true the barcode is in the right place if false then its not
Hope this helps,
R