Results 1 to 2 of 2
  1. #1
    detaylor1242 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Location
    Lacey, WA
    Posts
    19

    Adding a total to a main form calculated from a subform

    I have two tables. Tickets and Input items. I created a sub-form and the individual ticket info is added to the database. the table calculates the UnitTotal ( Qty * UnitPrice). There are multiple items sold on the ticket.



    I want to add to the ticket form and table the Sum of the UnitTotals of that ticket. ( This is a quality check on the data entry/ticket writer) After that total is entered on the ticket form it will calculate the tax and the grand total.

    No idea of how to get the total from the subform over to the Ticket main form? No problem doing the calculated fields though.

    Any help greatly appreciated.

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    the table calculates the UnitTotal ( Qty * UnitPrice).
    You have a field in the table that is a calculation?? You need to read these two sites
    http://allenbrowne.com/casu-14.html#CalcFieldA2010
    http://allenbrowne.com/ser-45.html

    Most experienced programmers avoid the use of calculated fields in tables (bad). (but calculated fields (columns) in queries are good)


    (thinking out loud...)
    One idea is to have the subform after update event code calculate the total and push it into the control on the main form. Or, if the there is a total on the subform, have the code take the total from the control on the subform and push it into the control on the main form.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-12-2015, 12:03 AM
  2. Subform total on main form
    By muhammadirfanghori in forum Forms
    Replies: 1
    Last Post: 03-12-2015, 08:42 AM
  3. Replies: 19
    Last Post: 06-30-2014, 04:36 PM
  4. Replies: 4
    Last Post: 03-14-2012, 10:08 AM
  5. Replies: 4
    Last Post: 10-18-2011, 10:18 AM

Tags for this Thread

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