M
MJ
I am sure someone has done this before and I am just not finding the right
discussion point.
I have a number of queries which are working correctly, yet when it returns
NULL I would like for it to tell me that "No Data is Present" so that we
don't go off chasing problems that are not there. For this posting I will
include a simplified example of the actual SQL code for one of my queries:
SELECT DISTINCT MyTable.Field1, MyTable.Field2, MyTable.Field3, ...
FROM MyTable
WHERE (((MyTable.Field2) In ("A","B","C")))
GROUP BY MyTable.Field1, MyTable.Field2, MyTable.Field3, ...
HAVING (((MyTable.Field1) Between (StartDate) And (EndDate)));
What I am looking for is when this query results in a NULL table, that
instead of the null table it would populate the Field1 with "No Data is
Present".
How can this be done simply?
Thank you in advance for your assistance with this.
discussion point.
I have a number of queries which are working correctly, yet when it returns
NULL I would like for it to tell me that "No Data is Present" so that we
don't go off chasing problems that are not there. For this posting I will
include a simplified example of the actual SQL code for one of my queries:
SELECT DISTINCT MyTable.Field1, MyTable.Field2, MyTable.Field3, ...
FROM MyTable
WHERE (((MyTable.Field2) In ("A","B","C")))
GROUP BY MyTable.Field1, MyTable.Field2, MyTable.Field3, ...
HAVING (((MyTable.Field1) Between (StartDate) And (EndDate)));
What I am looking for is when this query results in a NULL table, that
instead of the null table it would populate the Field1 with "No Data is
Present".
How can this be done simply?
Thank you in advance for your assistance with this.