Exit a control with a barcode scan

Gkirkup

Registered User.
Local time
Today, 09:08
Joined
Mar 6, 2007
Messages
628
I have a form on which data is entered into a control with a simple barcode scan - basically you scan a label and it enters six characters onto the control.
My problem is that after you scan, it sits there with the six characters entered until you press [Enter] on the keyboard. What I would like to do is to eliminate the need for a keypress. How do I make the control exit after the characters are scanned?
I thought something like 'On change' or 'On dirty' and check for six characters? Any ideas? (I can't change the label format).

Robert
 
You could try the After Update event and move the focus to another field or control. Using the On Change will trigger every time a character is entered in the field.
 
You need to set up an input mask for the 6 digits and set the autotab property to true. That way as soon as the last character is entered it moves focus to the next control.
 
David: That worked perfectly. Thanks so much!

Robert (Used to be from Walsall!)
 
FWIW, the scanners I've used have had a setting that would automatically send a carriage return or tab after the scan. Most of them did it out of the box, a couple required it to be set. Then I just use the before/after update events of the textbox to handle the scan.
 

Users who are viewing this thread

Back
Top Bottom