Radio Button to show fields

N

naiveprogrammer

I would like to have a radio button when clicked to "open" or show 4 text
boxes where you can enter info into the text boxes. Is this possile?

Basically have 2 radio buttons-
1 radio button
2 radio button(when #2 is clicked show the fields below)
Text Box _________
Text Box _________
Text Box _________
Text Box _________
 
P

PC Datasheet

You can make them visible/not visible with the following code in the
AfterUpdate event of the radio button:
Me!TextBox1.Visible = Me!RadioButtonName
Me!TextBox2.Visible = Me!RadioButtonName
Me!TextBox3.Visible = Me!RadioButtonName
Me!TextBox4.Visible = Me!RadioButtonName

Or enable/disable (grayout) them with:
Me!TextBox1.Enabled = Me!RadioButtonName
Me!TextBox2.Enabled = Me!RadioButtonName
Me!TextBox3.Enabled = Me!RadioButtonName
Me!TextBox4.Enabled = Me!RadioButtonName


--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
[email protected]
www.pcdatasheet.com

If you can't get the help you need in the newsgroup, I can help you for a
very reasonable fee. Over 1000 Access users have come to me for help.
Need a month calendar or 7 day calendar? Need appointment scheduling? Need
room reservations scheduling? Need employee work scheduling? Contact me!
 
Top