please help to generate the report file name

cadmaster

New member
Local time
Today, 06:28
Joined
Apr 29, 2014
Messages
1
Hi,
I have a report named PIRREPORTFORMD17792. Every time I try to print out a record, the MS Access 2010 uses PIRREPORTFORMD17792 as a default file name.
Instead of using PIRREPORTFORMD17792 as a default file name for all the reports, I would like to use a field on the form for the file name. This field called PIRNO. This field will automatically generate a number whenever a new record is added.
Here is an example of what I want:
If I am on a record shown PIR20014-0001, then I want the file name of this report (in PDF) to be PIR20014-0001. I would appreciate your help a lot.

Regards,

Paul
 
Then replace the string "PIRREPORTFORMD17792", with the field from where the file name should come.
Else show the code you use to print out.
 

Users who are viewing this thread

Back
Top Bottom