Results 1 to 2 of 2
  1. #1
    accessbuddy is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Jul 2014
    Posts
    8

    Subtotal from subform seen on main form but also stored in the Orders table

    I have a subform (frmOrders_Lines_sub) in a main form (frmOrders). The subform has a many dropdowns for all my various materials etc for an order. The unit quantity is then multiplied by each unit price to provide a subtotal. However I want to have this subtotal in the main form and STORE it in the Orders table! I have tried to do a calculated field but this does not work. Are they any other options please?

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    You should be able to display the total in a text box on the main form by setting the text box Control source property to reference the text box on the sub form. Something like:
    = Forms!frmOrders.NameOfSubFormControl.Form.NameOfTextBox
    I do not think you should be storing the calculation. That should be calculated whenever and wherever it is needed.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 6
    Last Post: 11-30-2013, 02:41 PM
  2. Replies: 8
    Last Post: 05-30-2013, 05:06 PM
  3. Replies: 3
    Last Post: 11-04-2012, 09:25 AM
  4. Replies: 4
    Last Post: 02-04-2012, 12:51 PM
  5. Replies: 2
    Last Post: 08-01-2011, 11:35 PM

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