C
Cydney
Your expert advise would be so appreciated in the following matter.
I need to save a report as an RTF file. That's not a problem for the user to
do in Preview mode of the report. Simply select File | Export | Type is RTF
... etc. and save the file to the proper name and directory. However, I have
now secured the database (via the startup options) to disallow the user to
make changes and open the database. This also eliminates the "Export" option
in the menu.
I could export the file to RTF using code (as shown below), but it ignores
my criteria. Is there another way to do this?
MyCODE:
strWhere = (misc. criteria information)
If MsgBox("Do you want to export this report to Word?", vbYesNo) = vbYes Then
DoCmd.OutputTo acReport, stDocName, acFormatRTF, "C:\Swifter\test.rtf",
True
Else
DoCmd.OpenReport stDocName, acPreview, , strWhere
End If
I need to save a report as an RTF file. That's not a problem for the user to
do in Preview mode of the report. Simply select File | Export | Type is RTF
... etc. and save the file to the proper name and directory. However, I have
now secured the database (via the startup options) to disallow the user to
make changes and open the database. This also eliminates the "Export" option
in the menu.
I could export the file to RTF using code (as shown below), but it ignores
my criteria. Is there another way to do this?
MyCODE:
strWhere = (misc. criteria information)
If MsgBox("Do you want to export this report to Word?", vbYesNo) = vbYes Then
DoCmd.OutputTo acReport, stDocName, acFormatRTF, "C:\Swifter\test.rtf",
True
Else
DoCmd.OpenReport stDocName, acPreview, , strWhere
End If