K
KenNiuM
I refer to this post
http://www.microsoft.com/office/com...e6-8575-847a6abde5a7&cat=&lang=&cr=&sloc=&p=1
My problem is almost the same as his however i am still unable to get the
query i want.
SELECT SalesTransaction.stPaymentMode, Query1.lStaffID,
Query1.[lDate/TImeOfMax], Sum(SalesTransaction.stTotalAmount) AS
stTotalAmountOfSum
FROM SalesTransaction, Query1
GROUP BY SalesTransaction.stPaymentMode, Query1.lStaffID,
Query1.[lDate/TImeOfMax];
My SQL looks like this.
I want my sum to be =StaffID, >=lDate/TImeOfMax and =stPaymentMode
when i sum my total amount.
Hope someone can help me.
http://www.microsoft.com/office/com...e6-8575-847a6abde5a7&cat=&lang=&cr=&sloc=&p=1
My problem is almost the same as his however i am still unable to get the
query i want.
SELECT SalesTransaction.stPaymentMode, Query1.lStaffID,
Query1.[lDate/TImeOfMax], Sum(SalesTransaction.stTotalAmount) AS
stTotalAmountOfSum
FROM SalesTransaction, Query1
GROUP BY SalesTransaction.stPaymentMode, Query1.lStaffID,
Query1.[lDate/TImeOfMax];
My SQL looks like this.
I want my sum to be =StaffID, >=lDate/TImeOfMax and =stPaymentMode
when i sum my total amount.
Hope someone can help me.