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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use a bar code scanner in my access program

Status
Not open for further replies.

magezi

Programmer
Mar 2, 2000
118
UG
I have designed a program for my client and he wants data input through a bar code scanner. It is a gudget that reads bar codes attached to items and interpretes the price and item codes and feeds them into the program just as one would do with a key board.

Can any one help.

the bar code scanner, the associated printer and computer are Epson products and most Supermarkets here use such an arrangement.
Nkabirwa Sowed Magezi
nkabirwa@netscape.net

A Ugandan Developer for

(1) School Management Information System(SMIS) - Foxpro 2.6 ; Ms-Acess 97

(2)Debt onitoring System(DMS) - Ms-Acess 97

(3) The Loans Recovery System(LS) - Ms- Access 97

(4) The Dry Cleaners System(DS) - Ms- Access 97
 
the scanner will send data just as would the keyboard. Depending on the scanner you need a little interface program like BC-Wedge ( which will make your scanner work just like info where entered on the keyboard (specially if the scanner is on port COM).
Once the scanner works, you have to interprete the code you receive.
Here some code that tracks the code in the codebar and go to a specific field.

Function Track_Key(KeyAscii As Integer)
If KeyAscii = 231 Then
Forms!Form1!numero.Locked = False
Forms!Form1.Visible = True
Forms!Form1!numero.SetFocus
Forms!Form1!numero = ""
End If

End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top