|
-
Feb 14th, 2005, 07:16 AM
#1
Thread Starter
Junior Member
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
-
Feb 14th, 2005, 11:06 AM
#2
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
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|