Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I force a user to scan a barcode??

Status
Not open for further replies.

TheShadowKnows

Programmer
Aug 9, 2005
4
US
How can I force a user to scan instead of manually typing a value into a DSPF? The field on the screen will be non-displayed so as to avoid the user from seeing what is scanned. If a valid scan, the next screen appears showing the user the information needed. The problem is the barcode being scanned will vary by customer, so we cannot add some 'hidden' characters to the begining of this field (i.e. adding a "&#."to the begining of the barcode.
Any suggestions would be greatly appreciated.
 
silly, maybe ....
get a USB interface scanner and take away the keyboard!


DougP, MCP, A+
 
I'm not aware of what exactly DSPF is, but solutions could include the following:

1. Time the amount of time from the beginning of data entry (first key entered) to completion. If the timer takes more than a small amount of time then data entry is occurring via the keyboard. I have used this method many times to capture data entry in a buffer, time the next entry, and parse data differently based on manual or scanned entry.

2. DougP's solution, but based on your comment about additional information, I don't think this is possible.

3. Some scanners are programmable and you can add identifying characters via the programming to the data that is put in to the scanner. If you don't have this ability maybe you have the ability to return the data plus any check digits, you could then use the standardized algorithm to verify the check digits, remove these digits and move forward.

4. Train people not to do manual entry.

5. Fire people. There is only so much you can do in your program to prevent people from doing something. At some point you need to threaten, then fire the people who don't follow instructions. As a consultant, the number one reason I convince clients not to develop custom solutions is because they were planning on spending thousands of dollars to program around a single individual or group of people that nobody wants to confront.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top