Hi guys! Hoping to get some help here with my issue. I am sure there is a simple solution to what I'm trying to do but I haven't been able to figure it out.
I've created a form for users to select various types of reports and have them export as PDFs. Originally, there was only one form so everything worked fine. Now, I want users to be able to select different form types and so I've created a combo box that allows them to choose.
I have the following code attached to the print button's onClick event:
If Report_Type.Value = 1 Then
strDocName = "report1"
ElseIf Report_Type.Value = 2 Then
strDocName = "report2"
Else
strDocName = "report3"
End If
When I run it now, I get an error. Any ideas?
For reference, I am using the ConvertReportToPDF module from Lebans to print the reports to PDF. Hope this made sense!