Hi.
I have a converted macro which asks the user a vbayesno.
The code works perfect when "Yes" is selected, but when you select "No" it shows the "action failed" dialog box.
How can i prevent the dialog box from opening?
Here's my macro code
I have a converted macro which asks the user a vbayesno.
The code works perfect when "Yes" is selected, but when you select "No" it shows the "action failed" dialog box.
How can i prevent the dialog box from opening?
Here's my macro code
Code:
Function Control_Panel_Send_Submission_Confirmations()
On Error GoTo Control_Panel_Send_Submission_Confirmations_Err
If MsgBox("Confirm this program?", vbYesNo) = vbNo Then End
DoCmd.SetWarnings False
Call send_program_confirms
Beep
MsgBox "Promo Confirms Sent", vbInformation, "Promo Confirms"
Control_Panel_Send_Submission_Confirmations_Exit:
Exit Function
Control_Panel_Send_Submission_Confirmations_Err:
MsgBox Error$
Resume Control_Panel_Send_Submission_Confirmations_Exit
End Function
Comment