Report Name (1 Viewer)

Gismo

Registered User.
Local time
Tomorrow, 01:04
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
 

theDBguy

I’m here to help
Staff member
Local time
Today, 15:04
Joined
Oct 29, 2018
Messages
21,454
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.
 

Gismo

Registered User.
Local time
Tomorrow, 01:04
Joined
Jun 12, 2017
Messages
1,298
yes only the PDF file name will do.

How will I use DoCmd.Rename to select the record selected on a form?
 

theDBguy

I’m here to help
Staff member
Local time
Today, 15:04
Joined
Oct 29, 2018
Messages
21,454
Hi. You don’t need DoCmd.Rename any more. Instead, you can use DoCmd.OutputTo and just specify the filename in the argument.
 

Gismo

Registered User.
Local time
Tomorrow, 01:04
Joined
Jun 12, 2017
Messages
1,298
I is not possible to rename the Output PDF automatically to a value in a specific form which was selected?
 

theDBguy

I’m here to help
Staff member
Local time
Today, 15:04
Joined
Oct 29, 2018
Messages
21,454
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

Top Bottom