Results 1 to 2 of 2
  1. #1
    crimedog is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    141

    Sum / Nz In Detail Section

    I have an unbound Text Box in the Details section of a report


    I have: =IIf(DCount("*","[QuryRepDealsM1Comm]")=0,0,Sum([QuryRepDealsM1Comm]![RepMPS]))
    This is returning #error

    I have tried =IIf(DCount("*","[QuryRepDealsM1Comm]")=0,0,Nz(Sum([QuryRepDealsM1Comm]![RepMPS]),0))

    I have tried =IIf(DCount("*","[QuryRepDealsM1Comm]")=0,0,Sum(Nz([QuryRepDealsM1Comm]![RepMPS],0)))

    both continue to give me errors - the DCount function is working correctly

    The field [RepMPS] does contain nulls - and is not a calculated field.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Instead of doing this logic, put the condition in a query, then the text box looks at the field result.

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

Similar Threads

  1. Limit on Detail Section
    By RayMilhon in forum Reports
    Replies: 1
    Last Post: 02-12-2015, 12:51 PM
  2. Replies: 2
    Last Post: 01-09-2014, 07:24 PM
  3. for each record in detail section
    By nkuebelbeck in forum Reports
    Replies: 3
    Last Post: 05-28-2013, 01:42 PM
  4. Replies: 6
    Last Post: 03-26-2013, 12:17 PM
  5. The length of detail section of a report
    By blueraincoat in forum Reports
    Replies: 2
    Last Post: 04-06-2011, 12:24 AM

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