topaznz Posted August 28, 2009 Posted August 28, 2009 Hi there forum I'm building a grant tracking database for a non-profit organisation and have a field called "allocation balance" that looks at the "amount" and minuses line item expenses in the Expenditure Sub File (portal). Calculation "Total amount - Sum ( Expenditure Sub File::Amount )" I may very well have to attach a sample of the database. Where the "amount" is $275.15, I allocate this full amount in the Expenditure Sub File and the "allocation balance" reads -$0.00 instead of just $0.00. Any thoughts and contributions welcomed. Kind regards Tim
topaznz Posted August 28, 2009 Author Posted August 28, 2009 Hi Comment It's a calculated field that takes what value is in the "amount" field, minuses values in the sub-file (bit like an invoice systems line items). That way it shows how much money has not been allocated. Thanks for your reply. Tim
topaznz Posted August 29, 2009 Author Posted August 29, 2009 When I click into the field it says "-2.0e-14" minus quotes. Thanks Tim
comment Posted August 29, 2009 Posted August 29, 2009 Well, then the total amount does not EXACTLY equal the sum of the expenses, and the "-$0.00" you see indicates a (very small) negative number rounded to zero for display purposes. I don't think you need to worry about this, but if it bothers you, change the calculation to = Round ( Total amount - Sum ( Expenditure Sub File::Amount ) ; 2 ) Are either the total or the expense calculated?
topaznz Posted August 29, 2009 Author Posted August 29, 2009 Fantastic, your a genius, comment! Works perfectly and addresses other parts of my database I could you a similar calculation. Many thanks, comment Tim
comment Posted August 29, 2009 Posted August 29, 2009 I am still curious about the answer to my question: are either the total or the expense calculated?
Recommended Posts
This topic is 5908 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now