J
Jeff
Hi everyone,
I'd like to output a report that has several Queries as record sources to a
RTF file. I have a form that has a TextBox on it to let the user choose the
option (Query). The codes in the Click event of a CmdButton look like:
If Me!TextBox = “Food†Then
Reports![ReportName].RecordSource = “qryFoodâ€
ElseIf Me!TextBox = “Drink†Then
Reports![ReportName].RecordSource = “qryDrinkâ€
End If
DoCmd.OutputTo acOutputReport, "ReportName", acFormatRTF, “RTFFileNameâ€
It doesn't work. Is there anything missing? Any help is appreciated.
I'd like to output a report that has several Queries as record sources to a
RTF file. I have a form that has a TextBox on it to let the user choose the
option (Query). The codes in the Click event of a CmdButton look like:
If Me!TextBox = “Food†Then
Reports![ReportName].RecordSource = “qryFoodâ€
ElseIf Me!TextBox = “Drink†Then
Reports![ReportName].RecordSource = “qryDrinkâ€
End If
DoCmd.OutputTo acOutputReport, "ReportName", acFormatRTF, “RTFFileNameâ€
It doesn't work. Is there anything missing? Any help is appreciated.