PDF filename

S

shank

A while back, someone gave me the below code so when the report was printed
the PDF filename was provided. Works great.

Now I have a totally different database with many reports.
I want the filename to be [Report Caption] in properties & Date formatted
like 121108
Example: Amco Inc 121108.pdf
How do I get that done?

thanks

I tried editing the below, but keep getting syntax errors.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Private Sub Report_Load()
DoCmd.OpenReport "repSelectPO", acViewPreview, , "PO " & Me!PONo
Reports("repSelectPO").Caption = "PO " & Me!PONo
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top