Results 1 to 2 of 2

Thread: Help with Radio buttons in Access 2003 [Solved]

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    18

    Resolved Help with Radio buttons in Access 2003 [Solved]

    I am looking to create a set of radio buttons.

    Radio 1 selects search form
    Radio 2 select print form
    Radio 3 selects reports

    on click of the ok button it then selects the form and opens it

    if anyone could advise me of the code i would be most grateful
    Last edited by ade0282; Feb 15th, 2005 at 09:29 AM. Reason: Solved

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

    Re: Help with Radio buttons in Access 2003

    Create a frame
    Create the option buttons in the frame, ensure that each one has a different value in the Data tab of the properties.
    The easiest open form command is something like:
    Code:
    select case framename
     case 1
       DoCmd.Openform "frmname1"
     case 2
       DoCmd.Openform "frmname2"
     case 3
       DoCmd.Openform "frmname3"
    end select
    Which you put in the onclick code for the button.

    Best to rename the controls into something more developer freindly...

    Also use the intellisense for the docmd.openform, incase there are other things you need on it

    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...

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