Results 1 to 3 of 3
  1. #1
    Fedi87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2014
    Posts
    1

    How to get the sum from a subtable to the main table

    Hello!
    I’m kind of new to access, but I’ll try to explain my question as good as I can.



    I’m trying to make a sale database, where I have one table (Employee) with the columns: “ID” “Employee” “SoldCars” “TotalAmount” and then another table (Cars) which is related to Employee table and have the following columns in it: “Employee” “Cars” “Qty” “Price/Car”

    How can I get the total amount of the cars in to the employee table, so that I can have a table with employee name and then total amount of cars and total amount he have sold, and when you click on the employer it would show all the cars he have sold. Is this possible?
    I attached the access file to post, if anyone understand better from that.

    Thanks in advance J

    Click image for larger version. 

Name:	Untitled.jpg 
Views:	11 
Size:	110.3 KB 
ID:	17883
    Attached Files Attached Files

  2. #2
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Do not know the functionality of your design. But at first glance, feel that design need to be looked in to again.

    Thanks

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    If you are building a desktop application, rather than storing the calculated result in a table, I would calculate the result on the fly via a query or report and display the result in a form or report.

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

Similar Threads

  1. 'SubTable' to manage items attached to a specific record
    By RichardGR in forum Database Design
    Replies: 4
    Last Post: 04-03-2013, 02:37 AM
  2. How to highlight cell in subtable
    By togo in forum Access
    Replies: 16
    Last Post: 10-02-2012, 02:46 PM
  3. Replies: 8
    Last Post: 09-06-2012, 09:53 AM
  4. How do I subtable?
    By blippy in forum Database Design
    Replies: 7
    Last Post: 07-21-2011, 10:49 AM
  5. Subtable of Two Tables
    By swalsh84 in forum Queries
    Replies: 3
    Last Post: 04-30-2010, 10:41 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