J
Jennie
I have the following expression in my query:
Recent: Max(IIf([Current]=[PreviousDate]," ",">"))
When I switch the ">" and the " " it works perfectly but when I have the
Truepart set as " " all records have the ">". I tried substituting " " with
another character and it works. I also tried using "" (no space) and it still
didn't work.
If you need a little background, this database tracks the 91 utility bills
we receive each month. Not all of the accounts are billed monthly, I want the
">" to appear next to the accounts that did not receive a bill for the
current period. Current is formatted as mm/yyyy and is set as month and year
of the most recent bill received for each account. PreviousDate is also
formatted as mm/yyyy and is set as the previous month and year (For example,
we receive May's bills in June, so if I were to run the report today then
PreviousDate would be 05/2009). If the two fields do not match, meaning no
bill was received in 05/2009, I want the ">" to appear. If they do match,
then I don't want anything to appear. What am I doing wrong?
Recent: Max(IIf([Current]=[PreviousDate]," ",">"))
When I switch the ">" and the " " it works perfectly but when I have the
Truepart set as " " all records have the ">". I tried substituting " " with
another character and it works. I also tried using "" (no space) and it still
didn't work.
If you need a little background, this database tracks the 91 utility bills
we receive each month. Not all of the accounts are billed monthly, I want the
">" to appear next to the accounts that did not receive a bill for the
current period. Current is formatted as mm/yyyy and is set as month and year
of the most recent bill received for each account. PreviousDate is also
formatted as mm/yyyy and is set as the previous month and year (For example,
we receive May's bills in June, so if I were to run the report today then
PreviousDate would be 05/2009). If the two fields do not match, meaning no
bill was received in 05/2009, I want the ">" to appear. If they do match,
then I don't want anything to appear. What am I doing wrong?