Barcode Scanner - Dataevent does not fire in MS Access 2002

A

Alain Filiatrault

Hi,

I have a Metrologic scanner (MS7120).
In VB 6 I can scan products and when I scan them the "_dataevent"
fires so I can read the barcode and deal with it.

My application is in Ms Access 2002 but I cannot get the "_dataevent"
to fire when the scanner reeads a barcode.

Anyone can help on this?

Thanks a lot

Alain

Code I use (Working in VB6 but not in access 2002) :

Private Sub OPOSScanner5_DataEvent(ByVal Status As Long)
' Fill in the retrieved data
lblScanData.Caption = OPOSScanner5.ScanData
lblScanDataLabel.Caption = OPOSScanner5.ScanDataLabel

' Allow another data event to enter
OPOSScanner5.DataEventEnabled = True
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top