Results 1 to 2 of 2
  1. #1
    chuffy is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    3

    Unhappy How do I query multiple fields, and sum them all up?

    I have a table with transactions. The transactions are for both Parent companies and Child Companies.

    I created another table with the Parent in one field, and all the child companies as other fields of the Parent record.

    Can I use a query to sum all of the transactions for all of the child companies and the parent company, and combine them.



    My goal: To sum all transactions from both parent and child companies within a data range.

    I can do them all seperately, because I have all the company records(child and parent) as seperate records, in a Customer table, however I am having difficulty determining the best method for combining the parent and child company totals together.
    Last edited by chuffy; 06-28-2010 at 10:24 PM. Reason: More information

  2. #2
    dsmacs is offline Advanced Beginner
    Windows XP Access 2010 (version 14.0)
    Join Date
    Oct 2009
    Location
    Perth Western Australia
    Posts
    52
    Chuffy,

    I would just have one table for customers with a field called something like Parent. You will also need to create Customer Account Numbers, use a autonumber field if necessary. If the company is Parent than the Parent ID would be 0, otherwise if the company is a child the Parent Company account number would be entered in Parent ID Field.

    Once you have a link to both child and parent companies it will be easy to report on totals/subtotals.

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

Similar Threads

  1. Average of multiple fields on one row
    By Lockrin in forum Access
    Replies: 3
    Last Post: 05-18-2010, 11:14 AM
  2. Replies: 1
    Last Post: 02-03-2010, 09:17 PM
  3. Constract of Multiple Fields
    By KLynch0803 in forum Programming
    Replies: 6
    Last Post: 02-01-2010, 07:27 AM
  4. Replies: 1
    Last Post: 12-10-2009, 08:41 PM
  5. Populating multiple fields
    By jjcaprio in forum Programming
    Replies: 11
    Last Post: 08-16-2009, 01:51 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