There are lots of threads on subforms and I have seen http://www.mvps.org/access/forms/frm0031.htm as a result, but frustratingly, I can't get something really simple to work.
If I have a form 'frmAdHoc' with a subform 'subAdHoc', a textbox 'txtSQL' and a button 'cmdApply'
So I want something like:
Private Sub cmdApply_Click()
Me!subAdHoc.Form.RecordSource = Me!txtSQL.Text
Me!subAdHoc.Form.Requery
End Sub
(which returns: You can't reference a property or method for a control unless the control has the focus).
How hard can it be