title: VBA Compile Error: expected =
body: <p>I get an error for my code: </p>
  
  <blockquote>
    <p>compile error: Expected: =</p>
  </blockquote>
  
  <pre><code>DoCmd.OutputTo (acOutputReport, _
      ReportName &amp; " " &amp; Load, _
      acFormatPDF, _
      "\\drive\Reports\" &amp; ReportName &amp; " " &amp; Load &amp; " " &amp; Year(Date) &amp; Month(Date) &amp; Day(Date)&amp; ".pdf")
  </code></pre>
  
  <p>I have Access front-end and SQL-Server backend.</p>
  
  <p>What do I need to do to fix this? I am still a beginner with VBA.</p>