I'm cautious about designing and implementing a particular solution based on
an assumption of efficiency -- either approach will work, but I'd think
testing would be needed to determine if either approach was more efficient
than the other, and whether the difference in efficiency is enough to
matter.
Remember the hype about creating "lightweight" forms with no module because
they would load faster? The then-editor of Access Advisor tested a form with
no module and the same form with the largest module possible, and found the
"lightweight" form did load faster, by a massive 15 milliseconds (not
discernable to someone sitting at the keyboard waiting for the form to
open). Several "highly knowledgeable Access gurus" were very embarrassed --
they had drunk the Redmond Kool-Aid without verifying the claims and had
been strongly suggesting lightweight forms.
--
Larry Linson
Microsoft Office Access MVP
Co-Author, Microsoft Access Small Business Solutions, Wiley 2010
Access Developer a écrit, le 06/06/2013 18:20 :
Yes, on the right side you place a Subform Control and in code on the
Click
event of each Command Button, you use VBA code or a Macro to change the
Source Object property of the Subform Control (and the Link Child Fields
and
Link Master Fields, if needed).
It can be easier to create a (hidden) subform for each part, and make it
visible when clicking on the relevant button.
Just verify the resource consumption.