I have a query with a [Date_New] field. When I open the query, I would like to be able to select all dates or a particular date.
In the criteria for the [Date_New] field, I wrote the expression,
"IIf([For Date]="",>#1/1/2014#,[For Date])"
When I open the query, I am prompted for [For Date] as expected. The query will give me the data for a date that I enter. However, I had hoped it would give me all dates if I left the [For Date] blank and simply pressed "enter".
I have also tried "IIf Isnull([For Date]............ but I get the same results.
What am I doing wrong? Or am I going about this the wrong way?
Thanks for your help, Bill
In the criteria for the [Date_New] field, I wrote the expression,
"IIf([For Date]="",>#1/1/2014#,[For Date])"
When I open the query, I am prompted for [For Date] as expected. The query will give me the data for a date that I enter. However, I had hoped it would give me all dates if I left the [For Date] blank and simply pressed "enter".
I have also tried "IIf Isnull([For Date]............ but I get the same results.
What am I doing wrong? Or am I going about this the wrong way?
Thanks for your help, Bill