Hi ranman,
Thanks for the input, I really appreciate it! I created a query as you suggested and called it ExpenseSubtotals. Following is the SQL code from the query:
Code:
SELECT TBL_TransactionDetails.TransactionID, TBL_Transactions.TransactionCounterParty, Sum([ExpenseAmount]-[IncomeAmount]) AS SubtotalFROM TBL_Transactions INNER JOIN TBL_TransactionDetails ON TBL_Transactions.TransactionID = TBL_TransactionDetails.TransactionID
GROUP BY TBL_TransactionDetails.TransactionID, TBL_Transactions.TransactionCounterParty, TBL_TransactionDetails.IncomeAmount
HAVING (((TBL_TransactionDetails.IncomeAmount)<=0));
In the Control Source property of the text box in the main form, I entered "=DLookUp("[Subtotal]",[ExpenseSubtotals],[TransactionID])". However, I'm getting the same error message as before. Am I doing something wrong?