Loop thru a list of employees in a list box, then print to pdf,
Make a list box on a form. This will have the name,ID of the people to send to.
Then click a Print button to run loop below.
It will run thru the list and make the report.
Code:
'------------
Public Sub ScanList()
'------------
Dim vTo, vSubj, vBody, vRpt,vID , vFile
Dim vFilePath
dim i as integer
For i = 0 To lstEmps.ListCount - 1
vID = lstEmps.ItemData(i)
lstEmps = vID
vFile = vID & "-payslip.pdf"
docmd.OutputTo acOutputReport ,"rptPayslip", acformatPDF, vFile
Next
End Sub