Results 1 to 2 of 2
  1. #1
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    486

    Hide summary section on report of group doesn't exist

    I group one of my reports by cost center and then rider because a few of the customers use cost centers. However, 90% of them don't have cost centers and it ends up creating a summary for the cost center and then the exact same summary for the rider below it.

    I have tried :
    Code:
    If Me.CostCenter Is Null ThenMe.CostCenter.Visible = False
    End If
    but it doesnt work. How can I hide the cost center summary if there is no cost center?

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    I think you need to have the code in the Format or Print event of the section you want to hide (cost center footer???) and use the IsNull() function instead of Is Null:
    Code:
    If IsNull(Me.txtYourControl) then Me.GroupFooterX.Visible=False 'where x is the index of the cost center footer
    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Replies: 2
    Last Post: 11-15-2016, 03:49 PM
  2. Replies: 6
    Last Post: 12-14-2015, 03:25 PM
  3. Replies: 6
    Last Post: 03-26-2013, 12:17 PM
  4. Replies: 3
    Last Post: 02-17-2011, 10:19 AM
  5. Replies: 1
    Last Post: 10-11-2009, 08:31 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