Print and attach multiple PDF records
I state that I'm not an expert programmer.
In my database I have buttons with the following function:
importFile (this, printAndSaveRecord (this, "My Print Layout"), 'ID REPORT' + ".pdf")
and it's work perfectly.
However I have a "MOP REPORT" table attached to a "MOP FORM" subtable.
It can often happen to have several records in "MOP FORM".
Question: How can I create a button in order to generate a single PDF containing all the prints of the "MOP FORM" records + the "REPORT MOP" print and attach it to "REPORT MOP"? Basically, the combination of the print and attach function with the "print all" option in the print layout menu.
Thanks, I hope I explained myself correctly.