Results 1 to 3 of 3
  1. #1
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167

    Calculating Attendance

    Hi,



    I am trying to calculate student attendance. Each two week period a faculty member will enter student attendance information into the StudentAttendanceT (from a form) that will include StudentNumber, ClassNumber, AttendencePeriod, ClassessAttended and ClassesOffered. The number of records with the same StudentNumber and ClassNumber will ultimatley equal the number of two week AttendancePeriods entered. I would like to be able to determine the total number of ClassesAttended and ClassesOffered on a continual bases (to date) in a subform and report as the year progresses. A third calculation to determine the % attendance from ClassessAttended/ClassesOffered will be added.

    Any directions and suggestions will be greatly appreciated.

    Take care,

    Daryl
    Attached Files Attached Files

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Does this work for you

    Code:
    SELECT StudentAttendance.StudentID, Sum(StudentAttendance.ClassesAttended) AS SumOfClassesAttended, Sum(StudentAttendance.ClassesOffered) AS SumOfClassesOffered, [SumOfClassesAttended]/[SumOfClassesOffered] AS [Percent]
    FROM StudentAttendance
    GROUP BY StudentAttendance.StudentID;
    Create a subform and make the query the recordset-

  3. #3
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Thnaks so much Alan,

    That worked perfect! It was also a great lesson in SQL; to be able to see how the written code retrieves the desired records.

    Again, thanks so much.

    Take care,

    Daryl

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Automate Attendance
    By Palomino33 in forum Access
    Replies: 3
    Last Post: 01-14-2012, 03:57 PM
  2. Attendance Report
    By tabbycat1234 in forum Reports
    Replies: 1
    Last Post: 11-12-2011, 07:08 AM
  3. Attendance Database
    By grankioto in forum Access
    Replies: 2
    Last Post: 02-05-2011, 02:48 PM
  4. Database of attendance
    By antoniopom in forum Database Design
    Replies: 1
    Last Post: 01-19-2010, 06:49 AM
  5. Attendance design
    By 8rxtx8 in forum Database Design
    Replies: 0
    Last Post: 07-19-2009, 04:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums