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!
LVL 8
ApexCoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ptakjaCommented:
Are you sure the scanner can't append some characters? What brand scanner is it? We use Symbol scanners where I work. Both wired & wireless. They all are programmable (the wired models by scanning a configuration barcode) so do exactly what you are talking about (append CR/LF chars to the end of each scan).

Do you have the ability to modify the bar codes that you are reading?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
YurichCommented:
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
0
ApexCoAuthor Commented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
E-Commerce

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.