W
Warren
Hi,
I am having trouble trying to specify the the criteria for
my report in VBA, and then using automation to output the
report to RTF.
I can generate a Preview document of the report using:
-Method1
strLinkCriteria = "[Field1] = 'Value1'"
DoCmd.OpenReport( strReportName, acViewPreview, ,
strLinkCriteria)
but then I have to manually export the file.
I can use automation to Print the report right to the file
in this format:
-Method2
DoCmd.OutputTo acOutputReport, strReportName, acFormatRTF,
strFileName
but I can't seem to find a way to pass in the
strLinkCritera in the .OutputTo procedure.
I have tried using the Lebans utility, but I do not want
to use the snapshot route, as I want the file to be easily
editable after exporting to RTF.
Any advice is greatly appreciated.
Thanks
Warren
I am having trouble trying to specify the the criteria for
my report in VBA, and then using automation to output the
report to RTF.
I can generate a Preview document of the report using:
-Method1
strLinkCriteria = "[Field1] = 'Value1'"
DoCmd.OpenReport( strReportName, acViewPreview, ,
strLinkCriteria)
but then I have to manually export the file.
I can use automation to Print the report right to the file
in this format:
-Method2
DoCmd.OutputTo acOutputReport, strReportName, acFormatRTF,
strFileName
but I can't seem to find a way to pass in the
strLinkCritera in the .OutputTo procedure.
I have tried using the Lebans utility, but I do not want
to use the snapshot route, as I want the file to be easily
editable after exporting to RTF.
Any advice is greatly appreciated.
Thanks
Warren