T
Tara
I have a combo that uses the NotInList event to trigger a custom message box
and open up another form. I keep getting a error that says: Compile error:
Syntax error. I'm not sure what the issue is. Here's the code:
Private Sub Agency_NotInList(NewData As String, Response As Integer)
If MsgBox("This Agency is not currently in the list. Would you like to
add this Agency?", vbYesNo + vbQuestion) = vbYes Then
Response = acDataErrAdded
DoCmd.OpenForm "frmAddAgencies"
Else
Response = acDataErrContinue
MsgBox ("Please enter a valid Agency from the drop down box.")
End If
End Sub
Thanks for any help!
and open up another form. I keep getting a error that says: Compile error:
Syntax error. I'm not sure what the issue is. Here's the code:
Private Sub Agency_NotInList(NewData As String, Response As Integer)
If MsgBox("This Agency is not currently in the list. Would you like to
add this Agency?", vbYesNo + vbQuestion) = vbYes Then
Response = acDataErrAdded
DoCmd.OpenForm "frmAddAgencies"
Else
Response = acDataErrContinue
MsgBox ("Please enter a valid Agency from the drop down box.")
End If
End Sub
Thanks for any help!