Rusty
Registered User.
- Local time
- Today, 06:44
- Joined
- Apr 15, 2004
- Messages
- 207
Hi Guys,
I've used the code below to output a report to Word in rtf format:
This allows the user to specify where they want to save the file and under what name. However, does anyone know of a way to set the Output Format argument so that it will save it in the folder "Q:\Paperwork" AND under the file name "invoice" & the value in the [RequestNumber] field of the report? (i.e. "invoice [requestnumber] .rtf")
I've tried several different things within the code below but it doesn't work
Thanks,
Rusty

I've used the code below to output a report to Word in rtf format:
This allows the user to specify where they want to save the file and under what name. However, does anyone know of a way to set the Output Format argument so that it will save it in the folder "Q:\Paperwork" AND under the file name "invoice" & the value in the [RequestNumber] field of the report? (i.e. "invoice [requestnumber] .rtf")
I've tried several different things within the code below but it doesn't work

Thanks,
Rusty

Code:
DoCmd.OutputTo acOutputReport, "rptInvoice Request Form_patient events",
acFormatRTF, , , ""