Results 1 to 7 of 7
  1. #1
    George Pollow is offline Advanced Beginner
    Windows 7 32bit Access 2000
    Join Date
    May 2014
    Posts
    30

    Criteria to suppress zero amount from expression

    Here is my expression. What is the Criteria command to suppress the zero balance?



    Avail_3: ([Inventory_3]+[Sum Of 3_In]-[Sum Of 3_Out])

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    What do you mean by 'Criteria command'?

    Display of 0 can be suppressed with expression in textbox ControlSource:

    =IIf([Avail_3] = 0, Null, [Avail_3])
    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.

  3. #3
    George Pollow is offline Advanced Beginner
    Windows 7 32bit Access 2000
    Join Date
    May 2014
    Posts
    30
    Quote Originally Posted by June7 View Post
    What do you mean by 'Criteria command'?

    Display of 0 can be suppressed with expression in textbox ControlSource:

    =IIf([Avail_3] = 0, Null, [Avail_3])
    I am using Access 2000. To the left of the grid in Design View, there are titles for each line like Field, Table, Total, Criteria. I tried copying your statement to the Criteria line but it did not work. I cannot find ControlSource.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    ControlSource is property of data control (textbox, listbox, combobox, checkbox) on form/report.

    You want to exclude records where the expression returns 0?

    <>0
    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.

  5. #5
    George Pollow is offline Advanced Beginner
    Windows 7 32bit Access 2000
    Join Date
    May 2014
    Posts
    30
    Yes. I did not express my need clearly.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Issue resolved?
    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.

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    FYI I deleted your duplicate thread, so you should continue this one if you still need resolution.
    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. Criteria / expression help
    By MissLotus in forum Queries
    Replies: 1
    Last Post: 07-25-2013, 08:59 PM
  2. Replies: 3
    Last Post: 07-13-2013, 12:11 AM
  3. Criteria expression
    By kdbailey in forum Access
    Replies: 4
    Last Post: 08-13-2012, 04:00 PM
  4. datatype mismatch in criteria expression
    By CyberSkillsz in forum Access
    Replies: 1
    Last Post: 06-14-2011, 10:56 AM
  5. Criteria expression
    By benlw in forum Queries
    Replies: 1
    Last Post: 01-27-2011, 09:34 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