Hi. I have a query that I need to get the sum on certain columns.
As a first step I added the following code in order to create the Total Row at the bottom.
CurrentDb.QueryDefs("qryPayroll").Properties("TotalsRow") = True
Since the query's columns (fields) change every time because its source table is dynamic, I cannot determine which columns to sum up and save the query. I need to add the Sums in the specific columns through programming.
Any suggestions?
Thanks.
As a first step I added the following code in order to create the Total Row at the bottom.
CurrentDb.QueryDefs("qryPayroll").Properties("TotalsRow") = True
Since the query's columns (fields) change every time because its source table is dynamic, I cannot determine which columns to sum up and save the query. I need to add the Sums in the specific columns through programming.
Any suggestions?
Thanks.