I have a main form that has 2 separate subforms (NOT to be confused with a subform with another subform INSIDE that one). Lets call them Subform1 and Subform2 for ease of explanation right here. What I need is to link a child field of [MenuID] in subform2 with a Master Field of [MenuID] in Subform1
So the end result would be for example... I open the main form and select a record in subform1. Let’s say the value of MenuID of that record is 1. I need all records in subform2 to be displayed with a MenuID value of 1 also. Just as if Subform2 were actually inside subform1. But before anyone suggests to just do that, subform1 needs to be in continuous form view, and I cannot add a subform to the detail section when in that view(also placing the subform in the footer would technically work, but would not allow me to get the "visual" display I was hoping for).
This is what I have come up with so far but cannot get it to work, or don't even know if this is the right way to go about this:
In the on Current event of subform1 I put:
With Me.Parent.Subform2.Form
.LinkChildFields = Me.Parent.Subform2.Form.MenuID
.LinkMasterFields = Me.MenuID
End With
But have no luck. Does anybody have any suggestions on how to get this to work?
So the end result would be for example... I open the main form and select a record in subform1. Let’s say the value of MenuID of that record is 1. I need all records in subform2 to be displayed with a MenuID value of 1 also. Just as if Subform2 were actually inside subform1. But before anyone suggests to just do that, subform1 needs to be in continuous form view, and I cannot add a subform to the detail section when in that view(also placing the subform in the footer would technically work, but would not allow me to get the "visual" display I was hoping for).
This is what I have come up with so far but cannot get it to work, or don't even know if this is the right way to go about this:
In the on Current event of subform1 I put:
With Me.Parent.Subform2.Form
.LinkChildFields = Me.Parent.Subform2.Form.MenuID
.LinkMasterFields = Me.MenuID
End With
But have no luck. Does anybody have any suggestions on how to get this to work?