I have table of transaction data, I want to count the number of successful customer transactions but the table includes cancelled transactions with anegative value.
I was therefore looking to create a new calculated field for customer count which report either "1" or"-1" depending on if the price is positive or negative. The idea being a count of this would give the customer count. The expression I am using is:
[FONT="]IIf([Price]>=0, 1, -1)[/FONT]
The problem is it I get an error message saying "The calulated field cannot be created" "verify that expressio "[FONT="]IIf([Price]>=0, 1, -1)" includes fields that exist in the current table" [/FONT]
If anyone could advise on this it would be much appreciated.
Thanks
Jack
I was therefore looking to create a new calculated field for customer count which report either "1" or"-1" depending on if the price is positive or negative. The idea being a count of this would give the customer count. The expression I am using is:
[FONT="]IIf([Price]>=0, 1, -1)[/FONT]
The problem is it I get an error message saying "The calulated field cannot be created" "verify that expressio "[FONT="]IIf([Price]>=0, 1, -1)" includes fields that exist in the current table" [/FONT]
If anyone could advise on this it would be much appreciated.
Thanks
Jack