Is it possible to update the "Source Object" of a subform dynamically?
I'm using the below code to open an "edit" form based on a double click in some filtered results. I want to display the form that opens as the source object of a subform, is that possible?
Many Thanks
I'm using the below code to open an "edit" form based on a double click in some filtered results. I want to display the form that opens as the source object of a subform, is that possible?
Code:
Private Sub Detail_DblClick(passToDetail As Integer)
If IsNumeric(Me!txtDocID) Then
DoCmd.OpenForm "frmEditDocument", acNormal, , "Document_ID=" & Me!txtDocID, acFormReadOnly, acHidden
End If
Many Thanks