CODE
Private Sub Command15_Click()
Dim rs As Recordset
Dim blRet As Boolean
Set rs = CurrentDb.OpenRecordset("qryclecertificate")
With rs
.MoveLast
.MoveFirst
Do While Not rs.EOF
Forms!frmselectjudgesforprinting.txtvalue = rs!JUDGE
blRet = ConvertReportToPDF("rptclecertificatepdf", vbNullString, _
"C:\access\cle\" & rs!LastName & "cle.pdf", False, True, 150, "", "", 0, 0, 0)
DoEvents
rs.MoveNext
Loop
End With
rs.Close
Set rs = Nothing
Command15_Click_Exit:
Dim rs As Recordset
Dim blRet As Boolean
Set rs = CurrentDb.OpenRecordset("qryclecertificate")
With rs
.MoveLast
.MoveFirst
Do While Not rs.EOF
Forms!frmselectjudgesforprinting.txtvalue = rs!JUDGE
blRet = ConvertReportToPDF("rptclecertificatepdf", vbNullString, _
"C:\access\cle\" & rs!LastName & "cle.pdf", False, True, 150, "", "", 0, 0, 0)
DoEvents
rs.MoveNext
Loop
End With
rs.Close
Set rs = Nothing
Command15_Click_Exit:
Also, is there anyway to suppress the pdf file and Acrobat from opening after each file is created? That would be great, because I expect creating scores of seperate PDF files.
Thanks,
Eric