i need access to add the total in one column and give me a grand total of that one in another,instead all the scripts i have been given are carrying the total over to the next column and not adding anything
exp:
SumOfAmounts Total
$5,021.00
$900.29
$1,500.00 7421.29
instead i get this
SumOfAmounts AvgOfAmounts Number
$5,021.00 $5,021.00 $5,021.00 $900.29 $900.29 $900.29
$1,500.00 $1,500.00 $1,500.00
SQL
SELECT [Rental Table].Number, Count([Rental Table].Number) AS CountOfNumber, [Rental Table].Amounts, Sum([Rental Table].Amounts) AS SumOfAmounts, Avg([Rental Table].Amounts) AS AvgOfAmounts,
[Rental Table].Number
FROM [Rental Table]
GROUP BY [Rental Table].Number, [Rental Table].Amounts, [Rental Table].Number
ORDER BY [Number];
exp:
SumOfAmounts Total
$5,021.00
$900.29
$1,500.00 7421.29
instead i get this
SumOfAmounts AvgOfAmounts Number
$5,021.00 $5,021.00 $5,021.00 $900.29 $900.29 $900.29
$1,500.00 $1,500.00 $1,500.00
SQL
SELECT [Rental Table].Number, Count([Rental Table].Number) AS CountOfNumber, [Rental Table].Amounts, Sum([Rental Table].Amounts) AS SumOfAmounts, Avg([Rental Table].Amounts) AS AvgOfAmounts,
[Rental Table].Number
FROM [Rental Table]
GROUP BY [Rental Table].Number, [Rental Table].Amounts, [Rental Table].Number
ORDER BY [Number];