This should be straightforward, I'm just struggling with syntax. I very simply want to click a button on a main form to view only record in the subform where the [Date_field] is prior to today.
Several posts show conflicting syntax for this. Here is what I have:
Dim strWhere As String
strWhere = "[Date_field] < #" & Date & "#"
Form_frmRecords.Filter = strWhere
Form_frmRecords.FilterOn = TrueThe recordsource for the subform is a query, I'm wondering if that is hosing it up.