A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Option button



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2004, 06:02 AM
Aniko
external usenet poster
 
Posts: n/a
Default Option button

Hi,
Could you please help me?

I would like to add option buttons to a main form,
selecting the type of asset. When a particular option
button is clicked, I would like the corresponding submenu
being activated in a tab control. I will have as many tabs
as option buttons.

When I click an option button, I can activate the tab with
an event procedure, but the other option button does not
become inactive.

How can I toggle between option buttons? (eg, only make one
selected at a time)

Thank you,
Aniko

  #2  
Old June 4th, 2004, 08:26 AM
Reggie
external usenet poster
 
Posts: n/a
Default Option button

You could use an option group. It's located in the form design tool box.
Then for the option group set the after update event to see which option was
selected. You could use a select statement:

Private Sub optGroup1_AfterUpdate()
Select Case Me.optGroup1
Case 1
MsgBox "Option 1 selected"
Case 2
MsgBox "Option 2 selected"
Case 3
MsgBox "Option 3 selected"
End Select
End Sub


--
Reggie

www.smittysinet.com
----------
"Aniko" wrote in message
...
Hi,
Could you please help me?

I would like to add option buttons to a main form,
selecting the type of asset. When a particular option
button is clicked, I would like the corresponding submenu
being activated in a tab control. I will have as many tabs
as option buttons.

When I click an option button, I can activate the tab with
an event procedure, but the other option button does not
become inactive.

How can I toggle between option buttons? (eg, only make one
selected at a time)

Thank you,
Aniko



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:11 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.