I have a form that has one subform, but according to a field of the current record( in the table that is linked to the mainform), the subform should contain FormA or in the other case FormB.
Get your main form in design view. Choose the Subform control and put
a new subform right over the top of "SubTest". Tell the wizard to put
FormB there.