Hello everyone
I'm trying to filter a database between two dates in a form, the issue I have is that the fields originally were textboxes (unbound) with 'input mask' as :00/00/0000;0;_
And of course in the format of those were added 'Short Date'
The field originally to be filtered was called 'Date' from table (I know MS Access has that name reserved for itself) for that reason I changed the name in the form to Datetxt in the properties
With my code I inserted....
Private Sub Filtercmd_Click()
Me.Requery
Me.Filter = "Datetxt >= "& "#" & StartDatetxt & "#" And "Datetxt <="& "#" & EndDatetxt & "#"
Me.FilterOn = True
End Sub
It shows an error, what could be wrong?