title: Applying filter to Access Subform
body: <p>Maybe this one is easy, because i was able to do it via a simple Macro before, but via VBA i just couldn't get it right.</p>
  
  <p>I'm trying via VBA to filter a subform by trying to apply a DoCmd.Applyfilter command.</p>
  
  <p>I have a data field called TxtToday which has Date() as a default value. I would like to apply on form load a filter which would filter the records on subform which have the same date as the TxtToday field.</p>
  
  <p>As of now i have this code:</p>
  
  <pre><code>Private Sub Form_Load()
  
  DoCmd.ApplyFilter DATE_FOLLOWUP = TxtToday
  
  End Sub
  </code></pre>
  
  <p>Thanks for any help.</p>