In my first post, the code was for the age, following your sample code for dates, I replace the age with date and this is what I made
' Check for before date
If Me.txtbeforedate > "" Then
varWhere = varWhere & "policy_date > #" & Me.txtbeforedate & "#"" And "
End If
'...