Results 1 to 4 of 4
  1. #1
    Tommo is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Sep 2015
    Posts
    42

    Calculating totals from filtered datasheets

    Hi

    I am banging my head against the wall here.

    I am building a DB for a dance school.

    I have data sheets as subforms on a Main nav page that show the students and the classes they are enrolled in.

    I have combo boxes to filter this for individual classes/students.

    I think this makes sense so far.

    On the Classes By Student DS I have the cost of each class. I want to total these classes per student and start building an accounts system that will show how much they owe and how much they have paid. I just need to start with the totals though. How would I do this??

    On the Student by Classes DS I want to generate registers as reports. The only hard this in this is I would like to have a box for each class date on the form. I have put the term dates in a small table and I want a box for each class day from that.

    No idea really.

    Please Help.

    Please

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    showing your classes and student tables, charges are made to the Charge table using a students ID
    payments are made that way also. Eventually sum of payments must equal sum of charges.
    FORM: classes is the masterform, and Student are the subform, to add students to the class.

    tClasses
    ----------
    ClassID (auto)
    ClassName ballet 101,tango, charleston
    StartDate
    Instructor

    tStudents
    -------------
    StudentID (auto)
    FirstName
    LastName
    Address....

    tCharges
    -------------
    chargeID (auto)
    ClassID (long)
    StudentID (long)
    ChargeDate
    ChargeAmt

    tPayments
    ---------------
    PayID (auto)
    StudentID (long)
    AmtPaid
    DatePaid
    PayType (check,cash,MO,visa)
    ClassID (long)

    as for PART2 of your question, FORM2 (by reversing the 1st form ) where Student is the masterform, and classes are the subform,
    you see all classes by 1 student.
    you will also want subforms for PAYMENTS, & CHARGES.
    and maybe a hybrid, that combines payments & charges to see the balances of each.

  3. #3
    Tommo is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Sep 2015
    Posts
    42
    Thanks for quick reply!

    How do I generate totals per student and per class??

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Maybe build report(s)? Use report Sorting & Grouping features with aggregate calcs in group and report header/footer.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Calculating totals in a report
    By LaughingBull in forum Access
    Replies: 1
    Last Post: 07-25-2015, 09:33 AM
  2. Calculating Totals and subtotals
    By sdc1234 in forum Queries
    Replies: 1
    Last Post: 07-24-2014, 07:21 AM
  3. Calculating Totals in Query
    By dualvba in forum Access
    Replies: 2
    Last Post: 08-23-2012, 09:37 AM
  4. Calculating totals in a report
    By Jamescdawson in forum Reports
    Replies: 20
    Last Post: 06-14-2012, 02:33 PM
  5. Replies: 42
    Last Post: 07-13-2010, 02:49 PM

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