Results 1 to 3 of 3
  1. #1
    kristyspdx is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Posts
    23

    Hiding Zero Values

    Hello,

    I have rows in a report like this:

    Center Name Beg Bal Results Operations Loan Other Ending Bal
    1-97-xxx-xxxx Chemistry Dept 1,000.00 (630.00) 0.00 0.00 (370.00) 0.00


    I would like to supress the entire row, when printed, if the ending balance is zero, even if the other numbers are not zero. The "On Format" box is not displayed as an option in the Property Sheet, I guess because this is detail information, not a header. I have used code in the On Format box to hide other parts of this report (example below), but not sure if it can be done for rows like above. Ideas?

    Private Sub GroupHeader2_Format(Cancel As Integer, FormatCount As Integer)
    If IsNull(Me.Division_Subgroup1) Then
    Cancel = True
    End If
    End Sub

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    The ending balance is calculated on report, not a field in query?

    Detail section does have Format event but I don't think it will help.

    I don't know if code can suppress a record. I've only use filter criteria to exclude records from report.
    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
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    well I 'zeroed' in on your comment of: "when printed"

    copy/make a separate Report object for printing only; give it its own query/record source that is a variation from the one that is viewed - whereby there is a >0 criteria - so that this record source does not have those records..... then view 1 Report but print the other Report.

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

Similar Threads

  1. Hiding Tables
    By data808 in forum Access
    Replies: 1
    Last Post: 01-09-2014, 03:21 AM
  2. Hiding Images
    By Mclaren in forum Access
    Replies: 9
    Last Post: 06-30-2011, 11:37 AM
  3. Hiding controls
    By gg80 in forum Forms
    Replies: 3
    Last Post: 05-21-2011, 03:21 PM
  4. Hiding subreports
    By aouellette in forum Reports
    Replies: 0
    Last Post: 09-12-2008, 08:02 AM
  5. hiding forms
    By Halocarbon in forum Access
    Replies: 1
    Last Post: 12-09-2005, 09:51 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