Results 1 to 2 of 2
  1. #1
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591

    Question Option Group on a Report

    I want to put an option Group on a report with two toggle buttons. Here's my code, you'll get the idea.



    Code:
    Private Sub fraDetails_Click()
    With Me
    If fraDetails = 1 Then
    .Detail.Visible = True
    .Line_Grandchild.Visible = True
    .lblGrandchild.Visible = True
    .lblUPC.Visible = True
    Else
    .Detail.Visible = False
    .Line_Grandchild.Visible = False
    .lblGrandchild.Visible = False
    .lblUPC.Visible = False
    End If
    End With
     
    End Sub
    Is this possible? When I check for the valuePrivate Sub fraDetails_Click()

    The problem is the Option Group doesn't work. There is no stored value in the properties. Do option groups work on a report? With the level of detail I have to put into the code (more than what you see here), this seems the logical place. My next option is to go back to the form that opens it.

    What say you?

  2. #2
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    Solved this almost by putting a check on the form and the in the On Open event. It seems to work, but if you've got something to add, please do.

    I've got another related question which I'll ask in a seperate thread.

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

Similar Threads

  1. Replies: 4
    Last Post: 06-13-2011, 08:43 PM
  2. Replies: 0
    Last Post: 05-03-2011, 05:58 AM
  3. Option Group - Borders are gone
    By cevatyildiz in forum Forms
    Replies: 0
    Last Post: 04-30-2010, 06:08 AM
  4. Option Group
    By huskies in forum Forms
    Replies: 9
    Last Post: 12-02-2009, 12:06 PM
  5. Option Group broken out
    By dcecil in forum Reports
    Replies: 3
    Last Post: 04-21-2009, 10:30 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