i apologize in advance...i am very new and have much to learn. i have a combo box with the following code in the after update...i get the error "object required" can someone please guide me to a fix
Private Sub Combo0_AfterUpdate()
On Error GoTo Err_Combo0_AfterUpdate
Dim stDocName As String
Dim stLinkCriteria As String
If Combo0 Is between = "100210071001" And "100210079999" Then
DoCmd.OpenForm "PURCHASE 2", , , ""
Forms("PURCHASE 2").Controls("CUSTOMERS").Value = Me.[Combo0]
Me.Form.SetFocus
DoCmd.Close acForm, Me.Name
Else
MsgBox "THIS IS NOT A VALID CUSTOMER"
Cancel = True
End If
Exit_Combo0_AfterUpdate:
Exit Sub
Err_Combo0_AfterUpdate:
MsgBox Err.Description
Resume Exit_Combo0_AfterUpdate
End Sub
Private Sub Combo0_AfterUpdate()
On Error GoTo Err_Combo0_AfterUpdate
Dim stDocName As String
Dim stLinkCriteria As String
If Combo0 Is between = "100210071001" And "100210079999" Then
DoCmd.OpenForm "PURCHASE 2", , , ""
Forms("PURCHASE 2").Controls("CUSTOMERS").Value = Me.[Combo0]
Me.Form.SetFocus
DoCmd.Close acForm, Me.Name
Else
MsgBox "THIS IS NOT A VALID CUSTOMER"
Cancel = True
End If
Exit_Combo0_AfterUpdate:
Exit Sub
Err_Combo0_AfterUpdate:
MsgBox Err.Description
Resume Exit_Combo0_AfterUpdate
End Sub