R
Robert
I am using the following If...Then...Else statement:
If vbYesNo = vbYes Then
Dim stDocName As String
stDocName = "Rental Report"
DoCmd.OpenReport stDocName, acPreview
Else
DoCmd.CancelEvent
End If
I am trying to execute the printing of the report "Rental
Report" when the vbYes button is selected and when the
vbNo button is selected have the MsgBox close. This
procedure will not execute the printing. Your help is
appreciated and I thank you in advance.
If vbYesNo = vbYes Then
Dim stDocName As String
stDocName = "Rental Report"
DoCmd.OpenReport stDocName, acPreview
Else
DoCmd.CancelEvent
End If
I am trying to execute the printing of the report "Rental
Report" when the vbYes button is selected and when the
vbNo button is selected have the MsgBox close. This
procedure will not execute the printing. Your help is
appreciated and I thank you in advance.