Link to home
Start Free TrialLog in
Avatar of ApexCo
ApexCoFlag for United States of America

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!
ASKER CERTIFIED SOLUTION
Avatar of ptakja
ptakja
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
agree with ptakja. these settings normally are disabled by default, but if you look though the manual of your scanner, you would most likely find how to set up your scanner append a character or even perform some operations (move to the next field, simulate press-enter, etc).

good luck,
yurich
Avatar of ApexCo

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.