title: VBA - "Compile Error: Method or data member not found"
body: <p>I have been developing an Access form to operate as a frontend for a SQL database.  I have been working with a developer, and they added the following VBA code to our main form:</p>
  
  <pre><code>Private Sub Form_Current()
      If Me.NewRecord = True Then
          Me.Client_Name.Enabled = True
          Me.SSN.Enabled = True
          Me.DOB.Enabled = True
          Me.Prob_Fee.Enabled = True
          Me.Settle_Atty_Amt.Enabled = True
          Me.Settle_Date.Enabled = True
          Me.Final_Date.Enabled = True
      Else
          Me.Client_Name.Locked = True
          Me.SSN.Locked = True
          Me.DOB.Locked = True
          Me.Prob_Fee.Locked = True
          Me.Settle_Atty_Amt.Locked = True
          Me.Settle_Date.Locked = True
          Me.Final_Date.Locked = True
      End If
  End Sub
  </code></pre>
  
  <p>When I try to add a new variable to this statement <code>Me.Case_ID.Locked = True</code>, the following error is returned:</p>
  
  <blockquote>
    <p>Compile Error: Method or data member not found</p>
  </blockquote>
  
  <p>I'm not sure where to go from here.</p>