title: Use VBA to enable a text box when a check box is checked
body: <p>I am new to VBA and I'm trying to create a form in Access where a text box is enabled or disabled based on whether a check box is checked or unchecked.</p>
  
  <p>So if the 'Survey Requested?' box is checked the 'Date Survey Requested' box is enabled for the user to enter a date.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>  Private Sub CheckSurveyRequested_AfterUpdate()
  
  If CheckSurveyRequested = True Then
      DateSurveyReq.Enabled = True
  Else
      DateSurveyReq.Enabled = False
  End If
  
  End Sub
  </code></pre>
  
  <p>But this comes up with a '424 Object Required' error when I run line 5.</p>
  
  <p>Anyone have a suggestion as to what I'm doing wrong here?</p>