I'd like to print to .pdf out all records of a query, using a report. I have more than 1k records, and would like to save each record as a .pdf. I have concatenated the field "filename" within the query, with the intent to save the report using the "filename" field. The end result would be to click a button "print?" and the database would print to .pdf each record and save the file based on the "filename" field.
I know very little about VBA, and am working through a macro. Macro for Printing Training Checklist report
So, I'm printing a [Report].
The report name is "R Training Checklist".
The variable filename is "filename"
The end result would be a .pdf file saved with the data entered into field "filename" at the identified location.
If I use Output File "C:\Users\mabanes\Creative Cloud Files\Training Checklists\test2.pdf" ...I have no problems. But, I don't want 1k records names "test2.pdf" where I have to go and individual rename each record.
It seems I have something wrong in the expression, but can't seem to figure it out. "C:\Users\mabanes\Creative Cloud Files\Training Checklists\" & Reports![R Training Checklist].[Filename] & ".pdf"