I am trying to place a command button on my form that will convert a report to pdf. I can e-mail through adobe. My issue that I don't want to select a report from a list as setup successfully by Leban. I would like the code to be setup to print the only report needed from my form. In this case it's rptTblUser. How can I modify the code from Leban to print this way? Thanks in advance
blRet = ConvertReportToPDF(Me.lstRptName, vbNullString, _
Me.lstRptName.Value & ".pdf", False, True, 150, "ABC", "DEF", tr, 0)
I believe I need to replace the Me.lstRptName with the actual name of the report. I am not comfortable enough with the syntax to do so
blRet = ConvertReportToPDF(Me.lstRptName, vbNullString, _
Me.lstRptName.Value & ".pdf", False, True, 150, "ABC", "DEF", tr, 0)
I believe I need to replace the Me.lstRptName with the actual name of the report. I am not comfortable enough with the syntax to do so