It should be "as easy as"
me.parent!<subformcontrolname>.Form.Recordsource = "SQL...
Sometimes, to get the correct reference, I'll go through the expression builder. Doubleclicking through forms, loaded forms, main form, the subform in question, then select a property/control...