Results 1 to 3 of 3
  1. #1
    Remo is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2020
    Posts
    1

    Display zero instead of blank in report if data entry is blank


    If the data [qty] is blank, want to show 0 in access report instead of blank.


    When use below in text box control
    =IIf(IsNull([QTY]),0,([QTY]))


    It will result in error. Please help to solve this.

    Thanks much.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    You don't need the if:
    nz(field,0)

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,397
    or use the format property for the control. numbers have 4 states, positive, negative, zero and null, separated by a semi colon, so for nulls to present as 0 your would have

    ;;;0

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

Similar Threads

  1. Replies: 1
    Last Post: 01-31-2018, 04:06 PM
  2. Replies: 2
    Last Post: 12-11-2015, 02:55 PM
  3. Replies: 2
    Last Post: 03-17-2014, 09:01 AM
  4. View all data for blank parameter entry
    By royalrochelle in forum Queries
    Replies: 3
    Last Post: 09-07-2011, 08:00 PM
  5. Replies: 3
    Last Post: 10-23-2008, 08:43 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