A
Argonaught
Guest
I have a field in my database called [profit] this is a calculated field that works out the profit based on two other fields using an iif statement.
I now want to total my [profit] fields.
I created a new text box and inserted the following formula
=Sum([profit])
All i get is #error or #name
So i figure ive not enterd the name of the field correctly so i tried
=[profit]
which gives me the value of a single profit field, i figured this means im using the right field name, so im baffeled as to why i cant get the sum of all these fields.
Oh the control source on [profit] is =IIf([SoldFor]=0,0,[SoldFor]-[PaidFor]) if this is of any relevance i dont know.
Any help would be apreciated as im stumped
Cheers
Argonaught
I now want to total my [profit] fields.
I created a new text box and inserted the following formula
=Sum([profit])
All i get is #error or #name
So i figure ive not enterd the name of the field correctly so i tried
=[profit]
which gives me the value of a single profit field, i figured this means im using the right field name, so im baffeled as to why i cant get the sum of all these fields.
Oh the control source on [profit] is =IIf([SoldFor]=0,0,[SoldFor]-[PaidFor]) if this is of any relevance i dont know.
Any help would be apreciated as im stumped
Cheers
Argonaught