Implementing Lebans "ReportToPDF" For Current Record Only

T

tlyoung99

I currently have a command button to show an invoice report for the current
record only using the DoCmd.OpenReport with a Where Condition.

I would like to adapt Lebans "ReportToPDF" functionality so that I can add
the Where Condition but can not figure out how to do so.

I am guessing that I could use my same DoCmd.OpenReport function to create a
temporary report and then implement Lebans code, but I was hoping that there
would be a simpler solution.

Any help would be greatly appreciated.

Thanks.
 
Top