I have a query with the following statement
IIf(IsNull([DeceasedDate]![qry Compare 2006]) And (IsNull([Enrolled]![qry Compare 2007])),"New",IIf([DeceasedDate]![qry Compare 2006]="*12*","DECEASED"))
The query is getting data from 2 other queries.
Query1 has member #s and deceased date
Query2 has member #s and other data.
Need to combine the two queries.
The first part of the above query works, showing the status "NEW".
The second part does not seem to work.
where I want to show "Deceased", for members with a Deceased date.
I tried to use "IS NOT NULL", but that does not seem to work, so I had to use "*12*" as it appears in the table for the time in the date field,
Would really appreciate any help I can get.
Thank you!!
IIf(IsNull([DeceasedDate]![qry Compare 2006]) And (IsNull([Enrolled]![qry Compare 2007])),"New",IIf([DeceasedDate]![qry Compare 2006]="*12*","DECEASED"))
The query is getting data from 2 other queries.
Query1 has member #s and deceased date
Query2 has member #s and other data.
Need to combine the two queries.
The first part of the above query works, showing the status "NEW".
The second part does not seem to work.
where I want to show "Deceased", for members with a Deceased date.
I tried to use "IS NOT NULL", but that does not seem to work, so I had to use "*12*" as it appears in the table for the time in the date field,
Would really appreciate any help I can get.
Thank you!!