Results 1 to 5 of 5
  1. #1
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544

    #SIZE! What am I doing wrong? (NZ function)

    Good morning all,

    I am simply trying to print a customer statement, and when there are no payments against an invoice I get #size! in the calculated balance due field. I have this in the payments subreport footer: =Sum(Nz([PaymentAmount],0)) and then again on the statement report footer I have: =[invoicedetails].[Report]![invtotal]-Nz([Payments].[Report]![TotalPayments],0). I've tried searching for the #size! error and have found nothing useful.

    Thank you in advance.


    Gina

  2. #2
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    I got it. Never had this problem before and never saw this function before. Learn something new everyday I guess.

    Code:
    Function nnz(testvalue As Variant) As Variant
    'Not Numeric return zero
        If Not (IsNumeric(testvalue)) Then
            nnz = 0
        Else
            nnz = testvalue
        End If
    End Function

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Yup! That's where I got it - found the link from one of your old posts Paul! Thanks! Have a great day!

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You too Gina!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 12
    Last Post: 10-21-2018, 05:49 PM
  2. Iif function--- What am I doing wrong?
    By MaineLady in forum Access
    Replies: 17
    Last Post: 08-29-2014, 02:03 PM
  3. Replies: 3
    Last Post: 02-12-2014, 03:36 PM
  4. Replies: 2
    Last Post: 03-20-2013, 04:25 PM
  5. Replies: 1
    Last Post: 01-14-2010, 04:10 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