Results 1 to 3 of 3
  1. #1
    Derrick T. Davidson is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    142

    Hide Detail In A Report

    Hi is it possible to hide the detail in a report with out doing it through the design view.

    i.e.
    ButtonClick no details (button dims)
    ButtonClick show details (button normal)

    I guess I am just looking for the code behind the hide detail option in design view to make it easy for the user???

  2. #2
    Derrick T. Davidson is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    142
    I tried with a check box using this code.
    Code:
     
    Private Sub chkHideDetails_Click()
    If chkHideDetails.Value = True Then
    Detail.Visible = False
    End If
    End Sub
    I get the following error message?
    “Procedure declaration does not match description of eventor procedure having the same name”

  3. #3
    Derrick T. Davidson is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    142
    Figured it out changed the caption rather than dim the button, my code for future enquirers:
    Code:
    If btnHide.Caption = "Hide Detail" Then
        Me.Detail.Visible = False
        btnHide.Caption = "Show Detail"
    ElseIf btnHide.Caption = "Show Detail" Then
        Me.Detail.Visible = True
        btnHide.Caption = "Hide Detail"
    End If

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

Similar Threads

  1. Replies: 6
    Last Post: 12-14-2015, 03:25 PM
  2. Report with Two Detail Sections?
    By beribimba in forum Access
    Replies: 2
    Last Post: 08-30-2011, 03:04 PM
  3. Conditionally hide detail row in report
    By martinjamesward in forum Reports
    Replies: 5
    Last Post: 09-06-2010, 02:51 AM
  4. Replies: 1
    Last Post: 10-11-2009, 08:31 PM
  5. report detail duplication
    By archie in forum Reports
    Replies: 5
    Last Post: 09-17-2009, 08: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