I have a field with the following IIF statement:
Simply returns OWES in the field if the balance is >$0, PAID if =$0, and OVPD if <$0. This works great ... the problem is that I want to use this query to power 2 different reports. One based on the records that have OWES in the column ... and another for OVPD.
When I put any value in the Criteria row ... the query comes back with no records. I have tried using the [Parameter Value] so I can enter the value I want on the fly, I have entered the value with and without quotes directly in the field, I have even gone so far as to eliminate all but the OWES value and filter by Is Not Null. No dice.
Oh ... and it's a make-table query used in a mail merge.
Thank you so much for your help.
Emily
Code:
OWES: IIf([BALANCE]>0,"OWES",IIf([BALANCE]=0,"PAID",IIf([BALANCE]<0,"OVPD","")))
Simply returns OWES in the field if the balance is >$0, PAID if =$0, and OVPD if <$0. This works great ... the problem is that I want to use this query to power 2 different reports. One based on the records that have OWES in the column ... and another for OVPD.
When I put any value in the Criteria row ... the query comes back with no records. I have tried using the [Parameter Value] so I can enter the value I want on the fly, I have entered the value with and without quotes directly in the field, I have even gone so far as to eliminate all but the OWES value and filter by Is Not Null. No dice.
Oh ... and it's a make-table query used in a mail merge.
Thank you so much for your help.
Emily
Last edited: