Results 1 to 7 of 7
  1. #1
    7HikingLeo is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    10

    Option Group on subform, where did my questions go?


    I have created a main form with tabbed subforms. On one I have a questionnaire. Certain questions are visible depending on the option selected in an Option Group. When I open the main form and click on the tabbed subform, the correct option 3 is selected, but that option's questions are not displayed (though there is data in the fields, saved in it's table). Instead option's 1 question is displayed. I've attached a picture of what I mean.
    Attached Thumbnails Attached Thumbnails AccessForms_OptionGroup.PNG  

  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,902
    Would have to review data structure and form design and any code controlling this process. If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    7HikingLeo is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    10
    I followed your instructions for attaching the db but it won't upload.

    This is the only code I've used:

    Private Sub TypeOfUse_Click()
    Me.Observation_Measurements.Visible = Me.TypeOfUse = 1
    Me.Education_Activities.Visible = Me.TypeOfUse = 2
    Me.Research_GPScoordinates.Visible = Me.TypeOfUse = 3
    Me.Research_Installation.Visible = Me.TypeOfUse = 3
    Me.Research_RNAUniqueness.Visible = Me.TypeOfUse = 3
    End Sub

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Won't be able to help.

    Why won't the file upload? What happens?
    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.

  5. #5
    7HikingLeo is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    10
    It acts like its uploading (spinning by the little question mark in the upper right hand corner), then nothing happens. I was thinking security issues with my computer so I could try sending it from home tonight.

  6. #6
    7HikingLeo is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    10
    I figured it out (I hope). I had to put the above code not only in the On Click event that will fire every time I click on the option group, but also in the Form's On Current event so that the correct items are shown as I scroll through the records.

    Update: It works, but now I get this error message when I open the database: The expression On Current you entered as the event property setting produced the following error: Object or class does not support the set of events.

    I'll try to send the zipped database tonight.
    Last edited by 7HikingLeo; 06-28-2017 at 04:40 PM. Reason: Update post

  7. #7
    7HikingLeo is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    10
    I figured it out used this code:

    Private Sub TypeOfUse_AfterUpdate()
    Me.TypeOfUse.Requery
    End Sub

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

Similar Threads

  1. option group
    By Sheba in forum Forms
    Replies: 25
    Last Post: 10-21-2014, 02:38 PM
  2. Replies: 4
    Last Post: 10-03-2014, 06:36 AM
  3. Replies: 5
    Last Post: 07-30-2013, 01:12 PM
  4. Option Group
    By x__hoE__x in forum Access
    Replies: 2
    Last Post: 12-10-2011, 09:39 AM
  5. Replies: 3
    Last Post: 05-24-2010, 06:56 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