G
Guest
I am trying to use an expression to pull data based on a date range. If the
date range is null, then I want the query to pull all records.
I have a form where the users enters a date range. [date1] and [date2]
So far I have this expression but it doesn't pull anything when a date range
is entered.
Like iif([form]![maintable]![date1] is null,"*",Between
[form]![maintable]![date1] and [form]![maintable]![date2])
what am i doing wrong? please help. thanks
date range is null, then I want the query to pull all records.
I have a form where the users enters a date range. [date1] and [date2]
So far I have this expression but it doesn't pull anything when a date range
is entered.
Like iif([form]![maintable]![date1] is null,"*",Between
[form]![maintable]![date1] and [form]![maintable]![date2])
what am i doing wrong? please help. thanks