View Single Post
  #2  
Old April 25th, 2008, 06:45 PM posted to microsoft.public.access.forms
AKphidelt
external usenet poster
 
Posts: 591
Default How do I use option group to open correct subform in retangle box

You'd have to create an on click event for the option group and use a Select
Case statement for the code.

So something like

Select Case optiongroup
Case 1
Me.Subform1.visible = True
Case 2
Me.Subform2.visible = True
End Select

This is just an example, you'd have to work with it to make sure it also
hides the correct subforms... etc.

"Karen B Rhodes" wrote:

I have option group with 3 buttons. When one is clicked...I want the correct
corresponding subform to open in retangle box next to option group.

I have buttons opening subform but it does it in new window not on main form

Thanks