I have a main form called Clients with two sub-forms. Each sub form displays the Client’s Products. One is a single form view, the other is a datasheet view. Both of the sub-form’s information comes from a product table. I want to be able to click on a certain product in the data sheet sub-form and have the single sub-form correspond to that product. The closest I have gotten is more of a work around that works like this.
In the data sheet sub-form Current()
Me.Parent.Form.txtHiddenID = Me.ref
This tells the main form what reference the data sheet is currently on. The single form then has
Link Childs fields: ref
Link Master fields: txtHiddenID
However, not all products have references and there must be a better way to do it. They are both referencing the same records so logically it’s not difficult.
In the data sheet sub-form Current()
Me.Parent.Form.txtHiddenID = Me.ref
This tells the main form what reference the data sheet is currently on. The single form then has
Link Childs fields: ref
Link Master fields: txtHiddenID
However, not all products have references and there must be a better way to do it. They are both referencing the same records so logically it’s not difficult.