Report Name

Gismo

Registered User.
Local time
Today, 14:54
Joined
Jun 12, 2017
Messages
1,298
Hi All,

Is it possible to have a report name based on a value in a form?
Every time the value changes in the form, the report name should change as I export to PDF and would like to have the report name for each export to be unique
 
Hi. I hope you don’t really mean you want to change the name of the report and just the name of the PDF file when you export the report. If you really want to change the name of the report, you could try using DoCmd.Rename.
 
yes only the PDF file name will do.

How will I use DoCmd.Rename to select the record selected on a form?
 
Hi. You don’t need DoCmd.Rename any more. Instead, you can use DoCmd.OutputTo and just specify the filename in the argument.
 
I is not possible to rename the Output PDF automatically to a value in a specific form which was selected?
 
Hmm, not in front of a computer now, but doesn’t the OutputTo method have an argument for the filename? If so, you should be able to specify the name of the PDF file. Can you post your OutputTo code, so we can tell how we can modify it? Thanks.
 

Users who are viewing this thread

Back
Top Bottom