I need some access 2007 help. I have a form I'm working on and I thougth what I wanted was something pretty simple but apparently I'm doing it wrong or going about it the wrong way.
I have a query that hit's a table that does some summing up. This is the results:
PRIORITY RegSum OthrSum
16.5
1 14.5
2 308 7.5
3 60.5
Here is the query:
SELECT DISTINCTROW PTQ_VSMP2_Breakdown.PRIORITY, Sum(PTQ_VSMP2_Breakdown.REGHRS) AS RegSum, Sum(PTQ_VSMP2_Breakdown.OTHRS) AS OthrSum
FROM PTQ_VSMP2_Breakdown
WHERE (((PTQ_VSMP2_Breakdown.COMPLETIONDATE) Between [Forms]![Form 2]![StartDay] And [Forms]![Form 2]![EndDay]))
GROUP BY PTQ_VSMP2_Breakdown.PRIORITY;
I need to find a way to add the RegSum and OthrSum together. Is that something to calculate in the query or somewhere else? I'll ultimately use the results in a bar graph.
I've tried all kinds of other functions but I can't seem to find the right one, or my direction/logic is wrong. If I need to back up some steps and take a different approach, please correct me there as well.
I have a query that hit's a table that does some summing up. This is the results:
PRIORITY RegSum OthrSum
16.5
1 14.5
2 308 7.5
3 60.5
Here is the query:
SELECT DISTINCTROW PTQ_VSMP2_Breakdown.PRIORITY, Sum(PTQ_VSMP2_Breakdown.REGHRS) AS RegSum, Sum(PTQ_VSMP2_Breakdown.OTHRS) AS OthrSum
FROM PTQ_VSMP2_Breakdown
WHERE (((PTQ_VSMP2_Breakdown.COMPLETIONDATE) Between [Forms]![Form 2]![StartDay] And [Forms]![Form 2]![EndDay]))
GROUP BY PTQ_VSMP2_Breakdown.PRIORITY;
I need to find a way to add the RegSum and OthrSum together. Is that something to calculate in the query or somewhere else? I'll ultimately use the results in a bar graph.
I've tried all kinds of other functions but I can't seem to find the right one, or my direction/logic is wrong. If I need to back up some steps and take a different approach, please correct me there as well.