John -- thank you, that worked! One problem remains -- I have fields that
give me order date, invoice number, customer info, order info and order
details, and payment information. When the payment information displays, it
displays the total amount paid for EACH line item, rather than one amount
for each invoice. Can this be changed? Also, I would like line item
information as well as one invoice total. Thank you.
John Spencer (MVP) said:
Pardon me, but if you have spaces in your field name (or other non-Alpha
characters) you should surround the field name with []. So try,
Positive: IIF([Total Price]>=0, [Total Price],NULL)
jwrnana wrote:
Tom -- I entered the following: Positive: IIF(Total Price>=0, Total Price,
NULL) and got invalid syntax. I took the space out between total and price,
but did not work. My field name is Total Price. I placed this where you
build an expression. I tried to place in criteria as >0 and <0 and
got
no
information.
I suggest you use two calculated columns in the query, perhaps like this:
Positives: IIF(YourColumn >= 0, YourColumn, NULL)
Negatives: IIF(YourColumn < 0, YourColumn, NULL)
You did not say in which column zero values would be placed. Perhaps
neither. However, I have placed them in the Positive column.
--
Tom Ellison
Microsoft Access MVP
Ellison Enterprises - your one stop database experts
I have a rather large query that has a column (Total Invoice Line Items)
that include some positives and negatives. I would like to have the
same
field, but one field lists all of the positives and one lists the
negatives
in a separate column.
Novice