UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Printing total on the report    
 
   
scotty5153
post Mar 28 2005, 05:25 PM
Post #1

New Member
Posts: 14



I have a table name Students and another one named Attendance. This is a one to many relationship. The attendance table has 3 fields. Student ID - a foreign key which references the primary key from the students table. It also has a Month field and hours per month field.

Ok here's the case:
Say I want to get a total of how many hours for all of the months that a student is in attendance, and get this result to show up on a report. How would I do this?

Any help would be appreciated.

Thanks,
Scott
Go to the top of the page
 
+
jmcwk
post Mar 28 2005, 07:24 PM
Post #2

UtterAccess VIP
Posts: 12,201
From: Tacoma, WA.



Scott,

If you have your grouping on your report to StudentID with a studentID Header AND footer in the StudentID footer place an unbound control caption: Student Hours Control source: =Nz(Sum([nameofyourfieldthat holds the hours])). Then in the report footer place another unbound control Caption: Grand Total Student Hours, Control Source: =Nz(sum([nameofyourfieldthatholds the hours]))

HTH
Go to the top of the page
 
+
scotty5153
post Apr 4 2005, 06:22 PM
Post #3

New Member
Posts: 14



John

Hey sorry that I took so long to respond, I've been very busy this past week. Putting the SUM function on the report worked perfectly. I appreciate the help.

Thanks a million

Regards,
Scott
Go to the top of the page
 
+
jmcwk
post Apr 4 2005, 06:31 PM
Post #4

UtterAccess VIP
Posts: 12,201
From: Tacoma, WA.



No Problem glad to Help out!
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 22nd May 2013 - 07:41 PM