Solved Unbound textbox to filter form by Year only

AC123

New member
Local time
Today, 17:07
Joined
Apr 22, 2020
Messages
8
Hi,

I am having trouble filtering my continuous form via an unbound text box by just typing in the year.
DB1.png


the textbox is cntrlDate, and the field I want to filter is [SurveyOn]

(Please ignore the gibberish text and 2nd filter button, this is still a work in progress)

Any help would be appreciated, thanks!
 
An easy way is to add to the form's query some calculated fields.
SurveyYear: Year([SurveyOn])
ReportYear: Year([ReportOn])

Now filter on SurveyYear or ReportYear
 
Would it be easier to use a text box with a date format and use a date picker rather than type date in?

1588262649924.png
 
You may find this if interest. I added a year field for the demo. It is the super filter.
 

Users who are viewing this thread

Back
Top Bottom