Results 1 to 6 of 6
  1. #1
    tagteam is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    501

    Too many Unbound sum fields

    I have a form that has a continuous sub form in it. I am summing the values from several fields in the form footer. however, after I get past six I get #Error.



    It looks like there is a limit on the number of unbound fields you can use to sum data. Is there any way around this?

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Doesn't seem like there should be a limit like you describe, there is a limit to the number of fields on a form but doesn't sound like you are there. Could the 7th sum field be an actual error in that field? Post some sample data and your code in that box.

  3. #3
    tagteam is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    501
    Update, it does not appear to be an issue with too many fields.

    it appears that the problem occurs when I am trying to sum another unbound field.

    In my continuous form have 6 fields that are actual fields in the database. Then I have 3 fields that just ubound fields used to run calculation on the fields in the table.

    In the footer I can sum up the 6 fields fine but when I try to sum any of the unbound fields all the fields show #Error.

    It looks like you can't sum an unbound field. Does anyone know if there is a way to do this? Do I need to add the unbound fields as calculated fields to the table?

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    It looks like you can't sum an unbound field.
    In an unbound text box there can only be one figure on the current form so there is nothing to summarize.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    By 'sum' do you mean an aggregate calc? Cannot do aggregate calcs on unbound controls, only on fields. If you want to aggregate the calculated values in the unbound controls, have to repeat the calculation in the footer control. So if your calc in the detail unbound control is [Quantity] * [Price] then the calc in the footer would be: Sum([Quantity] * [Price]). Otherwise, do the simple calc in table Calculated field or in query so you will have a field that can be referenced in the aggregate calc.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    tagteam is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    501
    I was able to resolve this issue by creating calculated fields in the main table. I can then add the calculated field to the detail area of the subform and use an unbound field to sum it at the bottom.
    Thanks for your help.

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

Similar Threads

  1. Populate Unbound Fields on Report
    By RyanP in forum Reports
    Replies: 6
    Last Post: 06-24-2015, 08:12 PM
  2. Replies: 5
    Last Post: 11-27-2012, 03:56 AM
  3. Replies: 8
    Last Post: 08-02-2012, 10:50 AM
  4. Saving bound and unbound fields
    By mejia.j88 in forum Forms
    Replies: 2
    Last Post: 11-04-2011, 05:09 PM
  5. Count and Sum of unbound fields?
    By C90RanMan in forum Forms
    Replies: 0
    Last Post: 07-29-2010, 01:17 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