Results 1 to 8 of 8
  1. #1
    ntradd is offline Novice
    Windows 8 Access 2007
    Join Date
    Apr 2014
    Posts
    4

    Option group not behaving properly on form

    Hi: I have a problem with an option group on a form in Access 2007. When I run the form, I can select an option from the option group, but if I try to select a different option instead, the form does not allow this. I either have to run the original option and come back to the form, or close the form and start again. I've never seen an option group behave like this before. I presume it's a setting of some kind that needs to be changed, but I haven't been able to determine what's causing this. Any ideas? Thanks.

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Is the Option Group Bound or Unbound?

    What code, if any, do you have behind the OG?

    Although we usually think of Forms or entire Databases when we speak of corruption, individual Controls, such as Option Groups, can and do become corrupted. The test and the fix are one and the same; deleting the Control then re-creating it! If it was corrupt, you've verified the fact and solved the problem! If not, you've only lost a minute or two!

    Linq ;0)>

  3. #3
    ntradd is offline Novice
    Windows 8 Access 2007
    Join Date
    Apr 2014
    Posts
    4
    It's an unbound control. It lists options for searching a database. After an option is selected, a command button acts on the option, using a macro. There is no code. There's a lot of formatting associated with the control in the form, so recreating it would take more than a few minutes of work, but I may try that.

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by ntradd View Post

    ...There's a lot of formatting associated with the control in the form...
    Can you explain this 'formatting' in more detail?

    Linq ;0)>

  5. #5
    ntradd is offline Novice
    Windows 8 Access 2007
    Join Date
    Apr 2014
    Posts
    4
    It's just cosmetic--the option group is part of a recessed box with borders, etc., but I may be able to delete the option group without disturbing the decorations

  6. #6
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by ntradd View Post

    ...It's just cosmetic...
    That being the case, I would go with the assumption that it is a corrupt Control. To test this out, I would:

    • Leave the original Option Group in place
    • Create a new Option Group
    • Go into the Macro you're using and replace the original Option Group name with the name of the newly created Option Group
    • Now, without adding all of your foo foo formatting stuff, see if the Option Group functions as it should.

    If the Option Group does work as it should:

    • Close the Database
    • Copy the Database file
    • Place the original Database file in a safe location

    Now, using the newly created copy of your app

    1. Delete the original Option Group
    2. Proceed, once again, to modify the newly created Option Group
    3. Apply one format
    4. Check for functionality
    5. Repeat Steps #3 and #4 until all formatting is complete


    If this has been successful, relax, you're home free:

    • Rename the original Database file to something else
    • Rename the newly created Database file using the original name of the original file


    If this has not been successful, i.e. it bombed, again, make a note of what type of formatting you were attempting to do with Step #3, above, that caused it to bomb, then, starting once again with the original Database file, go through the whole thing again, stopping just short of the formatting that caused the problem.

    Hopefully you won't have to do this! If the facts are as reported, I can't see anything other than corruption as the cause of this.

    Linq ;0)>

  7. #7
    ntradd is offline Novice
    Windows 8 Access 2007
    Join Date
    Apr 2014
    Posts
    4
    This morning I stumbled across the solution to this problem while I was looking for help on option groups. The bug is documented at http://support.microsoft.com/kb/926713. Apparently in Access 2007, option groups don't work when they're superimposed over a rectangle with the BackStyle property set to Normal, and when another control is superimposed over the option group. I changed some of my "foo foo" formatting and now everything works. Thanks for your suggestions.

  8. #8
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Glad you got it working.

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

Similar Threads

  1. Replies: 2
    Last Post: 02-19-2013, 07:47 AM
  2. Option Group
    By x__hoE__x in forum Access
    Replies: 2
    Last Post: 12-10-2011, 09:39 AM
  3. Replies: 6
    Last Post: 09-27-2011, 04:39 PM
  4. Option Group
    By huskies in forum Forms
    Replies: 9
    Last Post: 12-02-2009, 12:06 PM
  5. option group in form
    By mawa4492 in forum Forms
    Replies: 1
    Last Post: 08-05-2009, 02:49 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