It is possible to make a link between child and master through VBA, like this
It is also possible to make the link between child and master through the properties. But even every form (child and master) has its own recordsource defined in the "Form_Load" it is obliged to fill in explicitly the recordsource of the master in the properties.
Why?
Code:
.RecordSource = sqlOffertesWijzigenBasis
.subfrmOfferteProductenWijzigen.Form.RecordSource = sqlProductOffertesWijzigen
.subfrmOfferteProductenWijzigen.LinkChildFields = "OFID"
.subfrmOfferteProductenWijzigen.LinkMasterFields = "OFID"
It is also possible to make the link between child and master through the properties. But even every form (child and master) has its own recordsource defined in the "Form_Load" it is obliged to fill in explicitly the recordsource of the master in the properties.
Why?