How about using a data identifier in front of the bar codes? By this I mean:
Place a 'P' in front of a bar code to signify a part number. Then all you do is look at the first character and it will tell you what it is. This is how the labels work ofr the auto companies (AIAG label) Parts start with a 'P', Serials with an 'S', Quantity with a 'Q' etc.
HTH
Mike
>Normally, you are correct in your statement. But in my environment, I have users who may scan (enter) the data out of order. Since I don't know which barcode they have scanned (which field of data), it would be an even more kludgy piece of code to put up a dummy textbox and place the data in the right field according to some logic. Any other ideas would be welcome.
>
>Scott
>
>>A BARCODE READER CONNECTED TO THE KEYBOARD BY A WEDGE IS JUST LIKE A PERSon typing fast and pressing enter.
>>So just use a TEXTBOX control to accept the input from the scanner. and in the valid event do all your validations..
>>
>>Hope this helps..
>>Regards Fred
>>
>>>I can't be sure the users will scan the barcode in a specific sequence so I am looking for a way to capture the data scanned by the keyboard wedge barcode reader, store that data to determine what the data is, and then put the data in the right field. My problem is that if I use INKEY() or the KeyPress Event, I can read the first or last key in the buffer, but I lose all the keys in the middle. Any ideas on how to grab the entire keyboard buffer?
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement