Results 1 to 3 of 3
  1. #1
    angybab is offline Advanced Beginner
    Windows 10 Access 2010 32bit
    Join Date
    Oct 2020
    Posts
    35

    Using radio buttons to switch between forms

    Hi all,
    I have inserted an Optiongroup in my form.
    I want to use this to switch between forms.
    For example if I click on option 1,
    then form 1 should open, option 2
    then form 2 should open, option 3
    then form 3 should open,


    option unknown then it should
    remain on form 1.
    Please can someone help?

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,540
    The "usual" way is to use button controls to do this but you could use the following code in the After Update event of your OptionGroup control:
    Code:
        Select Case Me.NameOfOptionGroupControl 
            Case 1
                DoCmd.OpenForm "Form1"
            Case 2
                DoCmd.OpenForm "Form2"
            Case 3
                DoCmd.OpenForm "Form3"
        End Select
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    angybab is offline Advanced Beginner
    Windows 10 Access 2010 32bit
    Join Date
    Oct 2020
    Posts
    35
    Thanks Bob, it worked

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

Similar Threads

  1. Replies: 2
    Last Post: 04-22-2017, 04:31 PM
  2. Forms - Radio buttons
    By Sheba in forum Forms
    Replies: 26
    Last Post: 08-18-2014, 01:13 PM
  3. Radio Buttons
    By maguyver in forum Access
    Replies: 3
    Last Post: 07-07-2012, 10:39 AM
  4. Radio Buttons
    By ccordner in forum Forms
    Replies: 1
    Last Post: 01-27-2012, 09:56 AM
  5. Radio Buttons
    By neil123williams in forum Forms
    Replies: 8
    Last Post: 11-11-2011, 03:38 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