Results 1 to 8 of 8

Thread: [RESOLVED] How can I select two radiobuttons at the same time?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    8

    Resolved [RESOLVED] How can I select two radiobuttons at the same time?

    Dear All

    How can I select two radiobuttons at the same time (what should I change in their properties)?

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: How can I select two radiobuttons at the same time?

    The point of a radio button is that you cannot select more than one.. unless they have the same value.

    To have to option of more than one, change them to check boxes and scan them all - or don't put them in a group.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    8

    Re: How can I select two radiobuttons at the same time?

    Actually I found a program that uses radiobuttons and it has the ability to select them both

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How can I select two radiobuttons at the same time?

    You would need to put the radio buttons in container controls such as a picture box or a frame.

  5. #5
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: How can I select two radiobuttons at the same time?

    Well depends how you use them then.

    If you put the in a group / under the same name you can only select one (each will have its own value).

    However, you could use them like check boxes as long as they don't have the same name (VB) or you don't use a group/frame (VBA).

    How are you using them at the moment?
    Just ensure that they have a state default (say false/0). If they have an optin for tri-state, turn that off (otherwise you may have nulls to deal with too).

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How can I select two radiobuttons at the same time?

    Attached is an example using a picture box control. I prefer those over frames because you can set the border stype to none and it looks like the option buttons are actually on the form.

    There are six option buttons on my sample form grouped into three buttons apiece.

    You can select one button from each group.
    Attached Files Attached Files

  7. #7

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    8

    Re: How can I select two radiobuttons at the same time?

    Thank you very much Hack for your valuable post.

    Thank you Ecniv I've taken your advice by changing them into check boxes

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How can I select two radiobuttons at the same time?

    If you consider this resolved, you could help us out by pulling down the Thread Tools menu and clicking the Mark Thread Resolved menu item. That will let everyone know that you have your answer.

    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width