Samantha
still learning...
- Local time
- Today, 11:52
- Joined
- Jul 12, 2012
- Messages
- 182
I know this must be something so simple That I am missing. I have the following code attached to a button on a modal form. My thought is that when a user clicks okay a message box will open for the user to select yes or no if they select no I want the message box to close allowing the person to return to frmLookupServiceAddress, otherwise I want both the message box and form to close and save. I am not getting any error message the message box goes away in both responses.
Thank you for your time!
Code:
Dim Response As VbMsgBoxResult
MsgBox "Did you verify that this is a new address?", vbYesNo
If Response = vbNo Then
MsgBox "Please verify that this address is not currently in the database.", vbInformation
Else
If Response = vbYes Then DoCmd.Close acForm, "frmLookupServicesAddress", acSaveYes
End If
Thank you for your time!
