T
Tara
Repost from last week.
I have a combo that uses the NotInList event to trigger a custom message box
and open up another form. The standard error message that Access gives when
something is not in the list is still being displayed, despite my custom
message. The custom message displays, I choose yes to add the agency,
frmAddAgency opens and at that time, the standard message appears.
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
DoCmd.OpenForm "frmAddAgencies", acNormal, , , acFormAdd, acDialog
Else
Response = acDataErrContinue
MsgBox "Please enter a valid Agency from the drop down box."
End If
Response = acDataErrAdded
End Sub
Any idea why the standard message is still being displayed?
Any help is appreciated!
I have a combo that uses the NotInList event to trigger a custom message box
and open up another form. The standard error message that Access gives when
something is not in the list is still being displayed, despite my custom
message. The custom message displays, I choose yes to add the agency,
frmAddAgency opens and at that time, the standard message appears.
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
DoCmd.OpenForm "frmAddAgencies", acNormal, , , acFormAdd, acDialog
Else
Response = acDataErrContinue
MsgBox "Please enter a valid Agency from the drop down box."
End If
Response = acDataErrAdded
End Sub
Any idea why the standard message is still being displayed?
Any help is appreciated!