Hi everyone! I'm new here and have a question regarding Leban's report to pdf tool. I am working on a database where we are using this code to send a report out to pdf(duh) BUT what I need to do is a bit more complicated.
Basically the db keeps track of stock in various locations. Each month, a report must be run for the 76 locations and put into pdf so the reports can be put onto sharepoint .
I would like the database to loop through the various AreaID codes and create a pdf report for each area using the AreaName as the report name. The report is being selected from a list box and when we click on the create pdf button, the pdf is being created, but is being named the report name rather than the area name. (I dont have it looping yet as I would like to be sure I can get one report saved correctly before I do 76!)
The part of the code that refers to what to name the pdf is this:
Me.lstRptName.V alue & ".pdf"
my question (for now) is how to access the AreaName from the report shown in the list box and use that to name the pdf?
Thanks!
Jessica
Basically the db keeps track of stock in various locations. Each month, a report must be run for the 76 locations and put into pdf so the reports can be put onto sharepoint .
I would like the database to loop through the various AreaID codes and create a pdf report for each area using the AreaName as the report name. The report is being selected from a list box and when we click on the create pdf button, the pdf is being created, but is being named the report name rather than the area name. (I dont have it looping yet as I would like to be sure I can get one report saved correctly before I do 76!)
The part of the code that refers to what to name the pdf is this:
Me.lstRptName.V alue & ".pdf"
my question (for now) is how to access the AreaName from the report shown in the list box and use that to name the pdf?
Thanks!
Jessica
Comment