Results 1 to 1 of 1
  1. #1
    sidewayzalex is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    51

    Form/Subform Calculations


    Hey, I have a problem I have been working on for a little while now. I have a form in progress which has two subforms. The goal of the form is to be a Bill of materials. The first subform is for the prices and quantities of parts in an order, the second is for the labor hours and total labor costs in an order.

    I am trying to make a calculation in a text box in the main form that calculates the subtotal of the extended costs of the parts, and a total that sums up the previous subtotal with the total in labor costs.

    This is the equation I have been fiddling with in the main form to achieve the first calculation:

    =[Forms]![BOM1]![Parts per order Subform]![SellSubtotal:]

    Which is referencing the subtotal equation in the 'Parts per order Subform' that is in the footer. The problem is that this subform has to remain in table view.

    Please help!

    I have also tried methods similar to:

    =Sum([Forms]![BOM1]![Parts per order Subform]![Quantity]*[Forms]![BOM1]![Parts per order Subform]![PartCost])

    Resulting in only a #error message

    Sorry for wasting any time if I did, this issue was solved. I had to be referencing the text block itself, not what I 'declared' it. Haha, right under my nose
    Last edited by sidewayzalex; 08-16-2011 at 06:37 AM. Reason: Figured out what was wrong

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

Similar Threads

  1. Calculations in a form
    By elmere in forum Forms
    Replies: 3
    Last Post: 04-27-2011, 04:11 PM
  2. Calculations in Form not saving to table
    By ld8732 in forum Forms
    Replies: 1
    Last Post: 01-24-2011, 07:31 PM
  3. subform calculations
    By genesis in forum Forms
    Replies: 0
    Last Post: 12-03-2009, 07:18 PM
  4. Subform calculations
    By foureyes in forum Forms
    Replies: 4
    Last Post: 07-27-2009, 08:20 AM
  5. Subform and calculations issues
    By rustyCrVx in forum Access
    Replies: 1
    Last Post: 05-02-2009, 03:37 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