Hi Mark,
I hope I'm answering the right question(s); tell me if I'm not.
A parent form may contain more than one subform. You can insert two subforms, one for history and one for encounters, both linked as I have described in my previous post. If you have room then you may display both subforms simultaneously, say side by side. If not I suggest you overlay them and have a mechanism on the parent form to display one and hide the other and vice versa.
You could use a label, text box, combo box, list box or command button (toggle is good) for the control on the parent form that hides/shows the subform. In this case I would tend to choose either a label or a button; you don't need the functionality of a list control and an enabled text box allows the user to enter spurious data.
You hide/show the subforms by changing the visible property of the subform control, not the subform itself. Here's some sample code for the OnClick event of a label.
Code:
If Me.lblToggleSubForm.Caption = "History" then
Me.sfrHistory.Visible = False
Me.sfrEncounters.Visible = True
Me.lblToggleSubForm.Caption = "Encounters"
Else
Me.sfrHistory.Visible = True
Me.sfrEncounters.Visible = False
Me.lblToggleSubForm.Caption = "History"
End If
Starting conditions can sometimes prove a little tricky so you may have to tune the parent form's OnLoad event.
...
Another way of showing/hiding subforms is to place each subform on a separate page of a tab control. This is maybe the solution you have in mind. In this case link the subforms in exactly the same way.