
Originally Posted by
Phred
Wow! I was actually that close? Astounding! I must actually be learning.
Ok, I implemented the corrected code below. On click it executes without any error, but the sub form does not filter. My assumption is I am not addressing the DateAssigned field in the subform correctly or I am still missing something that has the subform show the filtered state. With the two records showing on the .Jpg I filtered for 3/1/2012 - 3/1/2012. It should have filtered to just one record but it still shows the two records. If I select a date range in February the records still show and they should vanish.
Dim FilterStartDate As Date, FilterEndDate As Date
FilterStartDate = Me.FilterDateStart
FilterEndDate = Me.FilterDateEnd
Me.Filter = "[DateAssigned] >= #" & FilterStartDate & "# AND [DateAssigned] <= #" & FilterEndDate & "#);"
Me.Filter = True
Me.Refresh 'does not work
Me.Requery 'does not work
Thanks again Fred
So close!! 
Once you set the filter string, you have to turn on the filter.....
The example from Help:
Me.Filter = "Country = 'USA'"
Me.FilterOn = True
Code:
Dim StartDate As Date, EndDate As Date
StartDate = Me.FilterDateStart
EndDate = Me.FilterDateEnd
Me.Filter = "[DateAssigned] >= #" & StartDate & "# AND [DateAssigned] <= #" & EndDate & "#;"
Me.FilterON = True
NOTE: I renamed your variables for the dates. I don't like having a variable in code with the same name as a control on a form or field in a table/query. Less confusion if they have different names.
To remove a filter:
Code:
Me.Filter = ""
Me.FilterOn = FALSE