Results 1 to 2 of 2
  1. #1
    jthoni is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Oct 2010
    Posts
    6

    Allocated funds in one table consume total recieved from another table

    I am hoping someone can point me in the direction where I should start researching this (and that this isn't a hopelessly stupid question).



    Last year, I created a database for an anual student fundraiser I manage. I kept track of the students, thier performance in the fund raiser, and the dontations received.

    I had the student data in one table, and dontations collected in another table. I then had a relationship between them, and a view that pivoted on the student (i.e. had the student details, and a subform showing all the donations received).

    The problem I ran into was that some donors gave money for multiple students (i.e. if there were siblings). As I was using the donor reciepts table to track deposits as well, I only had one entry per check.

    What I want to do is to have the donor reciepts have just the deposit details (i.e. name, check#, total amount, etc.). I then want to have a separate table that records "allocated donations" that consumes the total donation. Example:

    Students table
    ================
    Code:
     
    StudentID StudentName 
    1..............Smith, Toby
    2 .............Smith, Becka
    Donations table
    ============
    Code:
     
    DonationID DonationName DonationAmount
    1..............Schmoe, Joe...$100
    Allocated donations table
    ===================
    Code:
     
    AllocationID AllocationStudentID AllocatedDonationID AllocatedAmount
    1...............1..........................1..........................$50
    1...............2..........................1..........................$50
    With this data, I have just the one entry for the deposit (i.e. $100), but I can award credit to two students.

    I can do this manually, but I would like to set up a relationship between AllocatedDonations.AllocatedAmount and Donations.DonationAmount such as the total for all AllocatedDonations.AllocatedAmount of a given AllocatedDonationID equals Donations.DonationAmount.

    I figure there must be an analog to customers (donors), sales (donations) and sales person (student), but I am unfamiliar with this, and was hoping to find out how to set up this kind of relationship (i.e. were fields are not just linked, but that one is a subset of the other).

    Thanks!
    ~john

    P.S. Does anyone know where I can find the tag reference so I know how to put columns in the TABLE tag, or even tabs?

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,046
    Hi,

    you can easily write a check routine in the form where you enter the distributed donations. I would suggest to use a main form frmDonations" whith a subform "sfrAllocatedDonations". You can use a DSum function to total the allocated amounts for a location and the compare it with the amount donated in the main form.

    succes
    NG

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

Similar Threads

  1. Replies: 2
    Last Post: 12-22-2010, 01:46 PM
  2. Replies: 0
    Last Post: 11-30-2010, 12:23 PM
  3. Replies: 3
    Last Post: 01-21-2010, 08:10 PM
  4. Replies: 2
    Last Post: 10-27-2009, 07:09 AM
  5. Replies: 0
    Last Post: 08-01-2009, 12:43 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