You can change the Recordsource property of a single subform, or change the
SourceObject property to multiple subforms. Use the Recordsource property if
the queries are based on the same tables and have the same fields, and use
the SourceObject property if they are different subforms. A subform is a
control on a form, like a textbox, so the code to change it looks like:
Recordsource:
Me.SubformControlName.Form.Recordsource = "qryWhatever"
SourceObject:
Me.SubformControlName.SourceObject = "frmSubFormName"
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
Hi I'm trying to do basically the same thing. On one form I've titled it "Delete Record". In a subform I have two fields called "Header" {Delete Record}. The other is a memo field with instructions to delete a record. What I need is to have the sub form display the information of the Delete Record form in the sub form. The sub form is used as a help box so I'll be using it on different forms. So I guess what I'm saying is that the Delete Record form will searches the table where the instructions are located and have them displayed in the sub form.