oldfossil35967
Programmer
This freaking me out!
I have a simple user form:
1) scan value with CCD barcode scanner
2) retrieve description with SQL
3) position to quantity field, key quantity
4) update quantity value to row found using lookup code
5) clear old input values and return to barcode input textbox
The form works perfectly when barcode values are entered via keyboard, then quantity is keyed, form updates and cursor returns to textbox1 as needed.
If you use the scanner, everthing works, except when you press enter after keying the quantity the update to the spreadsheet row does not occur nor do the data fields clear and cursor return to the textbox1 barcode input field.
If I debug any statement in the macros, any statement at all, barcode scanning works same as keyboard entry, but ONLY with debug on!
In other words, the code is perfect, but it only works when using the barcode scanner in debug mode. (The values scanned by the scanner are correct, the SQL lookup/description retrieval works, you can key the quantity ok, but when you press enter on the quantity, nothing further happens, no event fired code executes.)
This is a USB port scanner. Is it possible it is turning off some interrupt handler until I set debug on?
Any clues or similar experiences out there?
I have a simple user form:
1) scan value with CCD barcode scanner
2) retrieve description with SQL
3) position to quantity field, key quantity
4) update quantity value to row found using lookup code
5) clear old input values and return to barcode input textbox
The form works perfectly when barcode values are entered via keyboard, then quantity is keyed, form updates and cursor returns to textbox1 as needed.
If you use the scanner, everthing works, except when you press enter after keying the quantity the update to the spreadsheet row does not occur nor do the data fields clear and cursor return to the textbox1 barcode input field.
If I debug any statement in the macros, any statement at all, barcode scanning works same as keyboard entry, but ONLY with debug on!
In other words, the code is perfect, but it only works when using the barcode scanner in debug mode. (The values scanned by the scanner are correct, the SQL lookup/description retrieval works, you can key the quantity ok, but when you press enter on the quantity, nothing further happens, no event fired code executes.)
This is a USB port scanner. Is it possible it is turning off some interrupt handler until I set debug on?
Any clues or similar experiences out there?