Open Form to specific subform

jsic1210

Registered User.
Local time
Today, 18:13
Joined
Feb 29, 2012
Messages
188
From one form, I am trying to open another form to a specific subform. So from frmContractAffiliateForm, I would like to open frmContractForm where the COID is the same on the parent form, and the ContractID is the same on the subform. Here is my code so far (without opening the specific subform):

DoCmd.OpenForm "frmContractForm", , , "COID=" & Me.COID
DoCmd.Close acForm, "frmContractAffiliateForm"

How can I open the parent form to a specific subform?
 

Users who are viewing this thread

Back
Top Bottom