Option Group

C

Chi

Hi,

I create an option group that has A, B, C and Other radio buttons. What I
would like to do is that when the users select the Orther button, the textbox
named INPUT visible for them to enter their comments.

Please help.

Thank you,
Chi
 
K

Keith Wilby

Chi said:
Hi,

I create an option group that has A, B, C and Other radio buttons. What I
would like to do is that when the users select the Orther button, the
textbox
named INPUT visible for them to enter their comments.

Please help.

Thank you,
Chi

Something like this in the OG's After Update event:

If Me.ogrMyOptionGroup = n Then
Me.txtComments.Visible = True
Else
Me.txtComments.Visible = False
End If

where "n" is the value of the "Orther" radio button.

Keith.
www.keithwilby.co.uk
 
M

Marshall Barton

Chi said:
I create an option group that has A, B, C and Other radio buttons. What I
would like to do is that when the users select the Orther button, the textbox
named INPUT visible for them to enter their comments.


Add a line of VBA code to the option group's AfterUpdate
event procedure:
Me.INPUT.Visible = (Me.optiongroup = <other option no.>
Add the same line of code to the form's Current event
procedure.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top