Good afternoon all,
I have downloaded an AWESOME code to convert snapshot reports into PDF. This thing is great, but the only problem is, I have a DB that will have multiple reports (SOP's) for our organization.
My question is how/where would I go about choosing the names of the SOP's instead of the "report" name and have it run the report and create the PDF for that specific report.
so I know I need to put a filter in there somewhere.
The list box would show the names of the SOP's, then double click or click the button and it would generate the report as normal.
database and modules in question are too big so if you send me a private message I'll e-mail you the DB.
The me.lstRptName.value is where it picks the report to PDF.
Thanks Stephen Lebans...he is the author of this wonderful code.
Larry
I have downloaded an AWESOME code to convert snapshot reports into PDF. This thing is great, but the only problem is, I have a DB that will have multiple reports (SOP's) for our organization.
My question is how/where would I go about choosing the names of the SOP's instead of the "report" name and have it run the report and create the PDF for that specific report.
so I know I need to put a filter in there somewhere.
The list box would show the names of the SOP's, then double click or click the button and it would generate the report as normal.
database and modules in question are too big so if you send me a private message I'll e-mail you the DB.
Code:
Private Sub lstRptName_DblClick(Cancel As Integer)
Dim blRet As Boolean
' Call our convert function
blRet = ConvertReportToPDF[B](Me.lstRptName.Value[/B], vbNullString, Me.lstRptName.Value & ".PDF", False)
' To modify the above call to force the File Save Dialog to select the name and path
' for the saved PDF file, simply change the ShowSaveFileDialog param to TRUE.
End Sub
Thanks Stephen Lebans...he is the author of this wonderful code.
Larry