View Single Post
  #3  
Old April 25th, 2008, 07:42 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default How do I use option group to open correct subform in retangle box

If you are using the OpenForm method, you will get the results you describe.
To open a form as a subform within the current form, you need to have a
subform control on the main form. Then you make the name of the form the
Source Object property value:

Me.MySubformControlName.SourceObject = "TheSubFormName"

--
Dave Hargis, Microsoft Access MVP


"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