I have a similar question to the OP. I currently have a form "bills" that has two subforms billsupper and billslower. When the main form loads the upper subform is visible and the lower one is not. When you double click on the one of the records on billsupper i then make billslower visible and then try to update the record source based on which one was clicked but i get the same object error.
Code:
Private Sub BillShtName_DblClick Forms!frmBills!sfmBillsLower.Visible = True strBillType = Me.BillType Forms!frmBills!sfmBillsLower.RecordSource = "SELECT BillsFormLower.* FROM BillsFormLower WHERE (((BillsFormLower.BillType)='" & strBillType & "'));" end sub
Comment