win 732 access 2003
I have executed an SQL statement:
I tried using the following to get the SUM variable cTotalAmount using
I get an error message stating this item is not in the collection How do I retrieve the results of the SQL statement?
tia Jack
I have executed an SQL statement:
Code:
SELECT nHouseholdNumber, nIndividualNumber, SUM (cAmount) as 'cTotalAmount' FROM tblFiscalGifts WHERE nIdentity > 0 AND (dtDateEntered >= #7/3/2011# AND dtDateEntered <= #10/03/2011#) GROUP BY nHouseholdNumber, nIndividualNumber
I tried using the following to get the SUM variable cTotalAmount using
Code:
cTotAmount = fiscalGiftsRecSet.Fields("cTotalAmount")
I get an error message stating this item is not in the collection How do I retrieve the results of the SQL statement?
tia Jack