I have a list of clients, (continuous form)
user picks the client, clicks a DETAIL button on the header,
this opens that client in a single record form, with sub form: docmd.openform "frm1Client",,,"[clientID]=" & txtID
now the 1 client detail is in the top part of the form, name,addr,etc,
the subform has either, purchases, history, etc.
I can change the sub form via a combo box, or TAB control.
the tab control has 3 or 4 tabs, labeled Purchases, Billing, Contacts, Calls.
this swaps out the sub form (can also be done with a combo box)
Code:
sub cboBox_Afterupdate
select case cboBox
case "Purchases"
subfrm.sourceobject = "frmPurchSub"
case "Billing"
subfrm.sourceobject = "frmBillingSub"
end select
end sub