N
nbohana
I have created a query to produce a report. I am trying to calculate a total
for 'cost-errors and number-errors' which are fields in the table. in one of
the cells I have the following code. When I execute the all I get is the last
entry for 'cost-errors'. Will someone help me understand what I am doing
wrong? If it helps I included the SQL Select statement.
TotalCost: CCur(+[esthist].[cost-errors])
SELECT DISTINCTROW esthist.[bid-number], esthist.[bid-suffix],
esthist.[job-name], esthist.tier, esthist.[est-hours], esthist.[act-hours],
esthist.[number-errors], esthist.[cost-errors], esthist.[discount-price],
esthist.[discount-date], esthist.[date-est], esthist.[date-check],
esthist.estimator, CCur(+[esthist].[cost-errors]) AS TotalCost
FROM esthist
WHERE (((esthist.estimator)=[Forms]![ReportSelect]![estselector]))
ORDER BY esthist.estimator;
for 'cost-errors and number-errors' which are fields in the table. in one of
the cells I have the following code. When I execute the all I get is the last
entry for 'cost-errors'. Will someone help me understand what I am doing
wrong? If it helps I included the SQL Select statement.
TotalCost: CCur(+[esthist].[cost-errors])
SELECT DISTINCTROW esthist.[bid-number], esthist.[bid-suffix],
esthist.[job-name], esthist.tier, esthist.[est-hours], esthist.[act-hours],
esthist.[number-errors], esthist.[cost-errors], esthist.[discount-price],
esthist.[discount-date], esthist.[date-est], esthist.[date-check],
esthist.estimator, CCur(+[esthist].[cost-errors]) AS TotalCost
FROM esthist
WHERE (((esthist.estimator)=[Forms]![ReportSelect]![estselector]))
ORDER BY esthist.estimator;