All I want to do is show values over 0
Values of WHAT over zero? Of the sum? of the individual field values?
Not sure where you got the complex ((Sum(Len(Trim([TRS] &
""))))=0)) gibberish; if you want to see only nonzero values of TRS
then
SELECT PTP.[Work Category], PTP.[Work Type], PTP.[User Contact],
PTP.[Work Order], PTP.Activity, PTP.Status, PTP.Address, PTP.TRS,
PTP.[Design Hours]
FROM PTP
WHERE (((PTP.[Design Hours])<>"Design") AND [TRS] <> 0;
If you want to see records where the Sum of TRS is greater than zero
you do indeed need the Totals query and a Having clause:
SELECT PTP.[Work Category], PTP.[Work Type], PTP.[User Contact],
PTP.[Work Order], PTP.Activity, PTP.Status, PTP.Address, PTP.TRS,
PTP.[Design Hours]
FROM PTP
GROUP BY PTP.[Work Category], PTP.[Work Type], PTP.[User Contact],
PTP.[Work Order], PTP.Activity, PTP.Status, PTP.Address, PTP.TRS,
PTP.[Design Hours], PTP.[Want Date], PTP.City, PTP.[Estimate Units],
PTP.[Unit Measure]
WHERE PTP.[Design Hours]<>"Design"
HAVING Sum([TRS]) <> 0;
Bear in mind I have no way to know how your table is structured, the
datatype of TRS, etc. so this may not be exactly what you need!
I presume that the field named "Design Hours" is just oddly named, and
in fact contains text strings such as "Design" rather than containing
a number of hours...
John W. Vinson[MVP]