Results 1 to 9 of 9
  1. #1
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    #Name? Error Main Form With Subform Calculations

    Both the main form and subform have a single table record source with NO missing or miss-named fields.
    I can't figure out what is causing this. I know what the error means but I don't see anything wrong.
    Here is a list of my field names and with control source. Table(s) used as record source is tblOrders (Subform) for Customer Orders and tblMonthID (Main Form) for list of Months. Do you see something I don't?

    ON Main Form
    (Gross Sales) =[frmSalesTaxSubform].[Form]![Gross]
    (Local Tax Due) =[frmSalesTaxSubform].[Form]![Local GT]
    (State Tax Due) =[frmSalesTaxSubform].[Form]![State GT]
    (Sales Tax Due) =[frmSalesTaxSubform].[Form]![Sales Tax]


    On Subform

    Calculated Fields: Name.Control Source

    (Gross) =(Sum(CCur([Gross Sale])+[AppliedPayment]+[SalesTax]))
    (SalesTax) =Sum([Sales Tax])
    (State GT) =Sum(CCur([State Tax Due]))
    (Local GT) =Sum(CCur([Local Tax Due]))
    (AppliedPayment) AppliedPayment

    Bound Fields: Name/Control Source

    (State Tax Due) State Tax Due
    (Local Tax Due) Local Tax Due


    (Gross Sale) Gross Sale
    (SalesTx) SalesTax
    (OrderAmount) OrderAmount
    Attached Thumbnails Attached Thumbnails SalesTaxForm.jpg   qrySalesTax.jpg  
    Last edited by burrina; 03-12-2013 at 01:19 PM. Reason: Another Pic of the Query

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Are you running into this?

    nnz function
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    I am not using that? Should I ?

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If it resolves the problem, yes. If not, no.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Dont see that it makes any difference

  6. #6
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Attached Database

    Sure! Here it is.
    Last edited by burrina; 03-12-2013 at 08:31 PM.

  8. #8
    Rawb is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    Quote Originally Posted by burrina View Post
    ON Main Form
    (Gross Sales) =[frmSalesTaxSubform].[Form]![Gross]
    (Local Tax Due) =[frmSalesTaxSubform].[Form]![Local GT]
    (State Tax Due) =[frmSalesTaxSubform].[Form]![State GT]
    (Sales Tax Due) =[frmSalesTaxSubform].[Form]![Sales Tax]
    Shouldn't that be:
    (Gross Sales) =Me![frmSalesTaxSubform].Form.[Gross]
    (Local Tax Due) =Me![frmSalesTaxSubform].Form.[Local GT]
    (State Tax Due) =Me![frmSalesTaxSubform].Form.[State GT]
    (Sales Tax Due) =Me![frmSalesTaxSubform].Form.[Sales Tax]

  9. #9
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    That has NO effect!

    THE Problem lied in the format: $#,##0.0000;-$#,##0.000

    This Solved it since the original value returned was less than a penny and of course the value returned would be Zero. FYI

    Thanks,
    Last edited by burrina; 03-13-2013 at 11:17 AM. Reason: Solved

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

Similar Threads

  1. Syntax Error For Main Form Subform Report
    By burrina in forum Reports
    Replies: 1
    Last Post: 12-27-2012, 03:03 AM
  2. Replies: 3
    Last Post: 04-17-2012, 10:28 AM
  3. Replies: 7
    Last Post: 12-28-2011, 02:05 PM
  4. Form/Subform Calculations
    By sidewayzalex in forum Forms
    Replies: 0
    Last Post: 08-15-2011, 01:11 PM
  5. Replies: 4
    Last Post: 05-17-2010, 05:32 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