Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OPTION GROUP IN VBA CODE

Status
Not open for further replies.

Mikmik

Programmer
Sep 16, 2002
3
0
0
IT
In my main Form I have created an Option Group with 3 Option Buttons having Option Value 1, 2 and 3.
How can I test, in VBA code, which button has been selected by the user?
Any help will be very appreciated.
 
In the Change event of the group's frame, add :

Msgbox MyFrame.Value

This should give you the number corresponding to the Option you selected whenever you click an option button.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top