I am a beginner so bare with me.
Trying to run the below filter on an underlying form but it only works the first time. Any ideas?
If Forms![Master Pre-op Patient Form]![Combo108] = "All" And Forms![Master Pre-op Patient Form]![Combo144] = "All" Then
Forms![Master Pre-op Patient Form].Filter = "[Initial Consult Date] Between [TempVars]![Start Date] And [TempVars]![End Date]"
Forms![Master Pre-op Patient Form].FilterOn = True
End If
Master Pre-op Patient Form has two combo boxes on it. and if both say "All," then I want the form to filter based on the two Temp Vars. First time I run it this it works, then every time after it does not use the updated values for Start Date and End Date and uses the values from the first time Start Date and End Date were set. I am stumped. I have even added two Unbound Boxes set to Start Date and End Date just to see the value passed to the obve function. They seem to be correct values but the form is only filtered to the values set the first time.
Sorry if the above does not makes sense