W
WildlyHarry
I have a form that allows a user to select multiple criteria to search for
records in a table. I am trying to make the form as flexible as possible
and allow the user to use as many or as few criteria as they want. The
selections on the form are then fed as criteria to a query. I have been able
to accomplish much of what I set out to do, using statments like
[forms]![form1]![name] or [forms]![form1]![name] is null. The issue I am
having is when I try to set up a date range. I would normally use Between
[forms]![form1]![date1] and [forms]![form1]![date2], but the user will not
always input a date. So I tried various combinations of (Between
[forms]![form1]![date1] and [forms]![form1]![date2]) or
[forms]![form1]![date1] is null. With no success. Does anyone have any
suggestions on how to add a date range that may or may not be used in
conjunction with multiple other criteria? Thanks in advance for you help.
records in a table. I am trying to make the form as flexible as possible
and allow the user to use as many or as few criteria as they want. The
selections on the form are then fed as criteria to a query. I have been able
to accomplish much of what I set out to do, using statments like
[forms]![form1]![name] or [forms]![form1]![name] is null. The issue I am
having is when I try to set up a date range. I would normally use Between
[forms]![form1]![date1] and [forms]![form1]![date2], but the user will not
always input a date. So I tried various combinations of (Between
[forms]![form1]![date1] and [forms]![form1]![date2]) or
[forms]![form1]![date1] is null. With no success. Does anyone have any
suggestions on how to add a date range that may or may not be used in
conjunction with multiple other criteria? Thanks in advance for you help.