So i have a report in my database which is generated by FID, and i would like for a button that I can use to export a PDF for every ID to a designated folder named by the FamilyName associated with that FID?
Is this possible with VBA? I'm not great at coding?
I know how to get to
DoCmd.OutputTo acOutputQuery, "YourQueryName", acFormatPDF, strPathAndFile, True
In my situation it would be
So the name ends for the PDF ends up being the familyname associated with that FID with the date the output happened.
But how do I code for it to happen for all FIDs as well?
Thanks,
Seb
Is this possible with VBA? I'm not great at coding?
I know how to get to
DoCmd.OutputTo acOutputQuery, "YourQueryName", acFormatPDF, strPathAndFile, True
In my situation it would be
Code:
DoCmd.OutputTo acOutputReport, "Family Report", acFormatPDF,strPathAndFile=L\\\\Seb\Database Work\Family Reports\"FamilyName" & Date()
So the name ends for the PDF ends up being the familyname associated with that FID with the date the output happened.
But how do I code for it to happen for all FIDs as well?
Thanks,
Seb