ApexCo
asked on
Barcode scanner and textboxes
Hello.
We are replacing the old barcode scanners we have with a new wireless model. The old scanners would automatically add a CR after the scan and I used this to move between field that were being scanned for a validation check on the chemicals being used. Well the new scanner doesn't do this at all, it reads the barcode fine and just sits there waiting after that.
I had been using the 'leave' event on the textboxes to fire a DB lookup and validate everything, and the trick here is to be able to do this completely hands-free with the scanner. So when the user scans the 1st barcode the leave event would fire and then I would shift the focus to the next field, call the DB lookup and everything was rosy.
Now I did try using the text_changed event, but that won't work because the input from the scanner is coming in like you are typing and after the first char it's moving on and the entire barcode isn't input into the textbox.
So at this point I'm looking for suggestions on how I could either wait out the end of the string coming into the textbox, or something along those lines so I can get the entire barcode input, then move on over to the next textbox automatically without the user needing to use anything else but the barcode scanner.
Thanks!
We are replacing the old barcode scanners we have with a new wireless model. The old scanners would automatically add a CR after the scan and I used this to move between field that were being scanned for a validation check on the chemicals being used. Well the new scanner doesn't do this at all, it reads the barcode fine and just sits there waiting after that.
I had been using the 'leave' event on the textboxes to fire a DB lookup and validate everything, and the trick here is to be able to do this completely hands-free with the scanner. So when the user scans the 1st barcode the leave event would fire and then I would shift the focus to the next field, call the DB lookup and everything was rosy.
Now I did try using the text_changed event, but that won't work because the input from the scanner is coming in like you are typing and after the first char it's moving on and the entire barcode isn't input into the textbox.
So at this point I'm looking for suggestions on how I could either wait out the end of the string coming into the textbox, or something along those lines so I can get the entire barcode input, then move on over to the next textbox automatically without the user needing to use anything else but the barcode scanner.
Thanks!
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks for the idea and that worked out well. My first time programming a barcode scanner, I had no idea you could make them do so much.
Appreciate the responses.
Appreciate the responses.
good luck,
yurich