Hi
You could use domething like this. I have add a popup message if no choice
is made to ButtonMiss031
Add an option group with a number of buttons (I have shown three but you can
have as many as you like). Next add a button (as I said I have called it
ButtonMIss031). I tend to use a combination of option group and button so as
to stop too many mistakes by users
The forms I have coded to open are
SubFormA
SubFormB
SubFormC
You will note that I have put a filter on to each form
So that it will open to a specific record (you could simply use Me.SomeField
which would have the benifit of letting you have a "dinamic" filter)
The filters I have used are
ABC
XYZ
OPQ
Have a try with this and if you have problems then post back and I will try
and help
Private Sub ButtonMiss031_Click()
If (Forms!FormName!OptionGroupName = 1) Then
DoCmd.OpenForm "SubFormNameA", acNormal, "",
"[Forms]![SubFormName1]![FieldName]=ABC", , acNormal
End If
If (Forms!FormName!OptionGroupName = 2) Then
DoCmd.OpenForm "SubFormNameB", acNormal, "",
"[Forms]![SubFormName1]![FieldName]=XYZ", , acNormal
End If
If (Forms!FormName!OptionGroupName = 3) Then
DoCmd.OpenForm "SubFormNameC", acNormal, "",
"[Forms]![SubFormName1]![FieldName]=OPQ", , acNormal
End If
‘This will add a pop-up message if no choice is made’
If (Eval("[Forms]![OptionGroupName]![SelectMode] Is Null")) Then
MsgBox "You must make a choice .", vbInformation, "No choice made"
End If
End Sub
You can delete most section of this code without it failing so have a play
around with it if you're not sure about coding forms.
Hope this helps
--
Wayne
Manchester, England.
Enjoy whatever it is you do
Scusate,ma il mio Inglese fa schiffo

Percio se non ci siamo capiti, mi mandate un
messagio e provero di spiegarmi meglio.
miss031 said:
I would like to have the selection that the user makes on the main form to
determine which sub-form is opened.
If the user clicks on one command (or toggle?) button I would like one
sub-form to open up to record further information of one type, if the other
main form control is clicked, I would like a different subform to open for a
different type of data to be recorded.