S
Soboths
Using Access 2003, I have a data entry form that will be using with wireless
barcode scanning. This form has 3 fields: PartNumber, SerialNumber, and
OrderNumber. I would like to set these 3 fields with an automatically moving
cursor to the next field as when data is scanned in without pressing enter or
tab key. This form is on the network for multiple computers. Due to the
difference in length of data being inputted, so therefore I can't have a fix
input mask to each field.
I have set below code on the On Change event for each field, but it doesn't
work
-------
Private Sub PartNumber_Change()
Dim ctrl As Control
Set ctrl = Me.ActiveControl
If Not (IsNull(Me.PartNumber)) Then
Me.SerialNumber.SetFocus
End If
End Sub
-------
Private Sub SerialNumber_Change()
Dim ctrl As Control
Set ctrl = Me.ActiveControl
If Not (IsNull(Me.SerialNumber)) Then
Me.OrderNumber.SetFocus
End If
End Sub
barcode scanning. This form has 3 fields: PartNumber, SerialNumber, and
OrderNumber. I would like to set these 3 fields with an automatically moving
cursor to the next field as when data is scanned in without pressing enter or
tab key. This form is on the network for multiple computers. Due to the
difference in length of data being inputted, so therefore I can't have a fix
input mask to each field.
I have set below code on the On Change event for each field, but it doesn't
work
-------
Private Sub PartNumber_Change()
Dim ctrl As Control
Set ctrl = Me.ActiveControl
If Not (IsNull(Me.PartNumber)) Then
Me.SerialNumber.SetFocus
End If
End Sub
-------
Private Sub SerialNumber_Change()
Dim ctrl As Control
Set ctrl = Me.ActiveControl
If Not (IsNull(Me.SerialNumber)) Then
Me.OrderNumber.SetFocus
End If
End Sub