Hello Guys,
I have a very simple vba code according to below where I export a pdf report.
Q: I have a field in that report called "Company". I would like to filter that report with a drop down text box named "Companyfilter" where I choose a Company to only include values from that Company in the report.
How do I change the code below?
Thanks in advance!
Private Sub RunReport_Click()
DoCmd.OutputTo acOutputReport, "rptNameOfReport", "PDFFormat(*.pdf)", "H:\xxxxx\reports\nameofreport.pdf", False, "", , acExportQualityPrint
End Sub