K
Krazy Darcy
I have a complex search query that works of several input fields on a form.
The criteria was:
[Forms]![artsearchkeyword]![yearsearch]
I was provided with code that can take a user specified year and filter
through the date field earlyer today (nzdst)
BETWEEN DateSerial([What Year?], 1, 1) AND DateSerial([What Year?], 12, 31)
It works on most other forms but not this one.
Could someone "rewrite" it to take it's input from a input field on a form.
form = artsearchkeyword
control name = yearsearch
This is a fairly conmplex query that has 34 rows of criteria as it tests for
all possible combinations of use of the input fields as a user may only fill
as few as one depending on what/how they want to search. All other fields
work ok.
currently the query is broked because of this.
(I have been removing the year field from queries/forms and migrating to
using the date field instead of having both) It did work before removing the
year field from the query.
Thanks for your time.
The criteria was:
[Forms]![artsearchkeyword]![yearsearch]
I was provided with code that can take a user specified year and filter
through the date field earlyer today (nzdst)
BETWEEN DateSerial([What Year?], 1, 1) AND DateSerial([What Year?], 12, 31)
It works on most other forms but not this one.
Could someone "rewrite" it to take it's input from a input field on a form.
form = artsearchkeyword
control name = yearsearch
This is a fairly conmplex query that has 34 rows of criteria as it tests for
all possible combinations of use of the input fields as a user may only fill
as few as one depending on what/how they want to search. All other fields
work ok.
currently the query is broked because of this.
(I have been removing the year field from queries/forms and migrating to
using the date field instead of having both) It did work before removing the
year field from the query.
Thanks for your time.