I have the following code gives me this error "you can't reference a property ormethod for the control unless the control has the focus
Private Sub Payment_Quantity_Change()
' Get the first digit of the value in the combo box
Dim firstNumber As String
firstNumber = Left(Me.Parent.Combo4.Text, 1)
' Set the account number combo box
On Error Resume Next
Combo21.Value = CInt(firstNumber)
Me.Parent.Combo4.SetFocus
End Sub
How do I fix this??
Alfred67
Private Sub Payment_Quantity_Change()
' Get the first digit of the value in the combo box
Dim firstNumber As String
firstNumber = Left(Me.Parent.Combo4.Text, 1)
' Set the account number combo box
On Error Resume Next
Combo21.Value = CInt(firstNumber)
Me.Parent.Combo4.SetFocus
End Sub
How do I fix this??
Alfred67