my barcode scanner works like a keyboard. i have a form that opens up with 1 combobox. i scan in a barcode. numbers appear in the combo box but no event happens...i have used the following code in after update, before update, on change, on eneter, and all the "key" options...is there something im missing in the code
Private Sub Combo0_KeyPress(KeyAscii As Integer)
On Error GoTo Err_Combo0_KeyPress
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.OpenForm "PURCHASE 2", , , ""
Forms("PURCHASE 2").Controls("CUSTOMERS").Value = Me.[Combo0]
DoCmd.Close acForm, Me.Name
Exit_Combo0_KeyPress:
Exit Sub
Err_Combo0_KeyPress:
MsgBox Err.Description
Resume Exit_Combo0_KeyPress
End Sub
Private Sub Combo0_KeyPress(KeyAscii As Integer)
On Error GoTo Err_Combo0_KeyPress
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.OpenForm "PURCHASE 2", , , ""
Forms("PURCHASE 2").Controls("CUSTOMERS").Value = Me.[Combo0]
DoCmd.Close acForm, Me.Name
Exit_Combo0_KeyPress:
Exit Sub
Err_Combo0_KeyPress:
MsgBox Err.Description
Resume Exit_Combo0_KeyPress
End Sub