T
Tedd
I am trying to an IIF statement in a query but it is not
working.
I have a query that is picking up data that is based on a
date that I enter. For example: the query gets everything
in COLUMN_A that is <= '20010101'(I provide the date).
That works fine. If there is nothing that is <= the date
nothing is returned.
I am trying to use an IIF statement to give a value if
nothing is found.
Here is my statement:
IIf(IsNull([COLUMN_A]),"No Value Returned",[COLUMN_A]).
When I run the query with a date I know does not exist I
would expect "No Value Returned" to show but I get
nothing. Just an empty cell.
If you have any ideas please let me know.
Thanks
working.
I have a query that is picking up data that is based on a
date that I enter. For example: the query gets everything
in COLUMN_A that is <= '20010101'(I provide the date).
That works fine. If there is nothing that is <= the date
nothing is returned.
I am trying to use an IIF statement to give a value if
nothing is found.
Here is my statement:
IIf(IsNull([COLUMN_A]),"No Value Returned",[COLUMN_A]).
When I run the query with a date I know does not exist I
would expect "No Value Returned" to show but I get
nothing. Just an empty cell.
If you have any ideas please let me know.
Thanks