title: How do I refer to form object within report code
body: <p>I know I had a similar post but it was closed before it was solved. I have more information now that might help. All the code is on the report vba module. So I’m trying to call a form object with report code</p>
  <p>Code:</p>
  <pre><code>    Do.Cmd.OpenForm “FormOne”, acNormal
      Forms!FormOne.Visible = False 
  
      If Forms!FormOne.Form!Authorization.Value = 1 Then 
         Me.Label1.Caption = “Report A Details” 
      ElseIf Forms!FormOne.Form!Authorization.Value = 2 Then
         Me.Label1.Caption = “Report B Details” 
      End If
      End Sub 
  </code></pre>
  <p>The part where I open the form and make it invisible works. The If/Else statement doesn’t work but also doesn’t give any errors. I also tried replacing the second (!) with (.) but the same thing happened.</p>
  <p>Because question was typed on iPad my quotes look like smart quotes.</p>