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

    #Name? Error in Report

    Hello,

    I have a report in which I am trying to hide some rows. See the two attached printscreens. The first printscreen shows the rows (highlighted by yellow box) that I am trying to hide if they have a null value for the "Group of Division Subgroup1" field. I have used the coding below. The second printscreen shows that it works for all but the first group (Strategic Reserves). This grouping still shows the row that should be hidden and inserts a #Name? error. Can anyone help with this?


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


    End Sub

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If your setup is what I think it is, try:

    Code:
    If IsNull(Me.Group_Of_Division_Subgroup1) Then
      Me.GroupHeader2.Visible = False
    Else
      Me.GroupHeader2.Visible = True
    End If
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    kristyspdx is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Posts
    23
    Tried it. I got the exact same result.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Can you post the db here, or a representative sample?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    kristyspdx is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Posts
    23
    Thanks for your willingness to help. The entire database is too large to post. I've attached a sample with just a few lines from the table that is used to create the report and the report itself. Any help in resolving this issue is appreciated.

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

Similar Threads

  1. Report error
    By indira in forum Reports
    Replies: 2
    Last Post: 03-12-2011, 03:13 PM
  2. Error in Footer Sum on Report
    By eww in forum Reports
    Replies: 2
    Last Post: 08-26-2010, 01:54 PM
  3. Access Report Error
    By sneupane in forum Reports
    Replies: 1
    Last Post: 03-10-2010, 09:31 AM
  4. Error in Print Report Button
    By Robert M in forum Reports
    Replies: 16
    Last Post: 09-23-2009, 03:08 PM
  5. Report Printing Error
    By gjohnson71 in forum Reports
    Replies: 4
    Last Post: 03-07-2009, 12:36 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