As a general efficiency topic, I have the following question:
Assuming two tables in a one to many relationship, fully normalised, and a main form and sub form based on these tables.
The 'usual' way of linking these is to create a parent/child relationhip between the main and sub form, thereby allowing the sub form to only show those records that are linked to the main form. However, from an effiency point of view, does this not mean that the subform is retireiving ALL records and filtering out those that match the main form? If so, then this would be quite inefficient.
An alternative would be to only return those records in the subform by setting the criteria in the underlying query of the subform, resulting in only the relevant records being returned via the query. By doing this, the parent/child relationhip between the main form and subform can be deleted. Would this be faster and more efficient?
Thanks for the help.
Assuming two tables in a one to many relationship, fully normalised, and a main form and sub form based on these tables.
The 'usual' way of linking these is to create a parent/child relationhip between the main and sub form, thereby allowing the sub form to only show those records that are linked to the main form. However, from an effiency point of view, does this not mean that the subform is retireiving ALL records and filtering out those that match the main form? If so, then this would be quite inefficient.
An alternative would be to only return those records in the subform by setting the criteria in the underlying query of the subform, resulting in only the relevant records being returned via the query. By doing this, the parent/child relationhip between the main form and subform can be deleted. Would this be faster and more efficient?
Thanks for the help.