FredixBlog


Just my log about anything I could find enjoyable.



Bar code reader

author Posted by: fredometro on date Jan 6th, 2004 | filed Filed under: MS-Access

Quertion: I have a bar code reader I would like to use to input serial numbers into an Access application. My understanding is that a bar code reader is just like your keyboard and it also has an “enter” key to place the data. The numbers I want of the 10 digit number scanned are only the rightmost 5 digits. Can anyone walk me through coding this so that the digits go into the correct text box on my form and I capture the last 5 digits of the number?
Fredix gave this response on 11/28/2001:
Hi!

The big difficulty, as you said, was to ensure that the input of the reader goes into the right field.

At many places, the program has the following line:


DoCmd.GotoControl "ReaderInput"

Also, ensure that the user has the less control possible on the input form: No Tab, Enter, Arrow keys, mouse. Ensure that all of these actions ends by going to the “ReaderInput” control.

After a torough testing, it finally works as expected, but this is not easy, I must tell.

For capturing only the 5 rightmost chars, use something like:


Serialnumber = right(me.ReaderInput,5)

Regards.

No related posts.

     Add A Comment

You must be logged in to post a comment.


Warning: include(/home/www/web421/html/phpTraffic/write_logs.php) [function.include]: failed to open stream: No such file or directory in /home/websitef/public_html/fredometro.com/wp-content/themes/blueshadow/footer.php on line 15

Warning: include() [function.include]: Failed opening '/home/www/web421/html/phpTraffic/write_logs.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/websitef/public_html/fredometro.com/wp-content/themes/blueshadow/footer.php on line 15