On 1 Nov 2006 08:58:02 -0800,
[email protected] wrote:
In the table I have a field for "SumofSalary Budget"
No such field should exist. Tables are for DATA STORAGE - they are
*not* spreadsheets! If you store a SumOfSalary Budget field in your
table, the value that you store *will be wrong* as soon as any change
is made to any of the values underlying the sum.
and another field
named "Grant end Date". What I want is a formula that would allow me to
sum the Salary Budget By the Grant end Date.
Create a Totals Query; Group BY [Grant End Date] and Sum [Salary
Budget].
Currently I sum everything
on a fiscal year but now I need it according to the Grant end date. So
in order to sum it on a fiscal year I have made 2 entries for each
grant to separate out the different years. Now I just want the total of
the Salary Budget to coincide with the year of the grant. My Grant End
Date Field has a mmddyyyy.
I don't know if that makes sense or not.
Not really. *You* understand how your tables are structured, the
meaning of a fiscal year (for you, they differ), and so on. I do not,
and I cannot see your database to resolve my questions.
But... in a nutshell - any totals like this can and should be
calculated, on the fly, using Totals Queries or other calculations in
Queries. They should almost certainly NOT be stored anywhere, in any
table field. If you're assuming that the data must be in a Table in
order to be reported, revise your assumption - it's perfectly easy and
normal to base a Report on a Query.
John W. Vinson[MVP]