title: Modify Chart properties in Access report via VBA (error 2771)
body: <p>I am building an Access report (2010 version), and would like to be able to customize it based on the user's selections  on a form. When I run it, I get error 2771: The bound or unbound object frame you tried to edit does not contain an OLE object.</p>
  
  <p>This is the code to pass the parameter:</p>
  
  <pre><code>Private Sub Command120_Click()
      DoCmd.OpenReport ReportName:="rpt_EODGraph", View:=acViewPreview, _
        OpenArgs:=Me!Text0.Value
  End Sub
  </code></pre>
  
  <p>This is the code to open the report.</p>
  
  <pre><code>Private Sub Report_Open(Cancel As Integer)
      Dim ch As Chart
      Set ch = Me.Graph3.Object.Application.Chart 'This line generates the error
      ch.ChartTitle.text = OpenArgs
  End Sub
  </code></pre>
  
  <p>I've found at least one person saying that this is not actually possible to do on a report. (<a href="http://www.access-programmers.co.uk/forums/showthread.php?t=177778&amp;page=2" rel="nofollow">http://www.access-programmers.co.uk/forums/showthread.php?t=177778&amp;page=2</a> Note that this is page 2 of a 2 page forum discussion...) Can anyone corroborate or refute?</p>