B
Bart
I am calling the following procedure in a module to print
a report and save it but it always runs the DoCmd even if
the user chooses vbNo. Any suggestions?
Public Function printoptions()
'This functions provides the user with the option to print
and save the report
MsgBox "Do you want to print the letter?", vbYesNo
If vbYes Then
DoCmd.PrintOut acPrintAll
End If
MsgBox "Do you want to save the letter?", vbYesNo
If vbYes Then
DoCmd.OutputTo acOutputReport, , acFormatRTF
Else
DoCmd.Close
End If
End Function
Thanks for your help.
Bart
a report and save it but it always runs the DoCmd even if
the user chooses vbNo. Any suggestions?
Public Function printoptions()
'This functions provides the user with the option to print
and save the report
MsgBox "Do you want to print the letter?", vbYesNo
If vbYes Then
DoCmd.PrintOut acPrintAll
End If
MsgBox "Do you want to save the letter?", vbYesNo
If vbYes Then
DoCmd.OutputTo acOutputReport, , acFormatRTF
Else
DoCmd.Close
End If
End Function
Thanks for your help.
Bart