title: How to save an access report with a custom name that is pulled out of the report?
body: <p>I need to save the PDF file with a custom name. This name should include a parameter/value from the report. </p>
  
  <p>I need to generate several reports like this so I need a differentiation which I guess the <code>Member_ID</code> field will provide. I did search a lot on the web, but I am not able to implement any of it. </p>
  
  <p>The code which I have now looks like this:</p>
  
  <pre><code>Private Sub Create_PDF_Click()
  
  Dim myPath As String Dim strReportName As String
  
  DoCmd.OpenReport "Proof_Graphs", acViewPreview
  
  myPath = "C:\Proofs\"
  
  strReportName = Proof_Graphs.[MEMBER_ID] + "-" + ".pdf"
  
  DoCmd.OutputTo acOutputReport, "", acFormatPDF, myPath + strReportName, True DoCmd.Close acReport, "Proof_Graphs"
  
  End Sub
  </code></pre>
  
  <p>I am getting an object not found error. </p>