R
Robert T
My job is sending me on a number of trips this summer so I created a simple
flat file table to track my expenses such as Airfare, Hotel, Train, etc. I'm
going to all of our regional offices and each one has a number such as 01,
02, 03, etc.
I designed a query and every cacluation works except the sum. The Average,
Maximum, Minimum, etc. per group is dead accurate.However, the Sum of Airfare
and Hotel expenditures for each office is about 10 times larger than it
should be. Hopefully someone can explain what I did wrong.Thanks in advance.
Here's the query.
SELECT tblExpenses.Office, tblExpenses.Type_Expense,
Sum(tblExpenses.Amount_Expense) AS SumOfAmount_Expense
FROM tblExpenses, LtblRegionalOffices
GROUP BY tblExpenses.Office, tblExpenses.Type_Expense;
Robert
flat file table to track my expenses such as Airfare, Hotel, Train, etc. I'm
going to all of our regional offices and each one has a number such as 01,
02, 03, etc.
I designed a query and every cacluation works except the sum. The Average,
Maximum, Minimum, etc. per group is dead accurate.However, the Sum of Airfare
and Hotel expenditures for each office is about 10 times larger than it
should be. Hopefully someone can explain what I did wrong.Thanks in advance.
Here's the query.
SELECT tblExpenses.Office, tblExpenses.Type_Expense,
Sum(tblExpenses.Amount_Expense) AS SumOfAmount_Expense
FROM tblExpenses, LtblRegionalOffices
GROUP BY tblExpenses.Office, tblExpenses.Type_Expense;
Robert