I need to find out how to reference a subform within a main form with VBA.
I have a Order Details subform in a main purchasing form. Buttons are available on this subform and I wish to control these using the forms On Load event rather than the subform load event. That means I can control the status of the buttons with one section of code rather than several which makes the coding longwinded and laborious.
Is there a way of referencing these in code like Me![btnClick]. Can the subform be included as part of this Me statement or since it is a separate form does it require an explicit statement?
I have a Order Details subform in a main purchasing form. Buttons are available on this subform and I wish to control these using the forms On Load event rather than the subform load event. That means I can control the status of the buttons with one section of code rather than several which makes the coding longwinded and laborious.
Is there a way of referencing these in code like Me![btnClick]. Can the subform be included as part of this Me statement or since it is a separate form does it require an explicit statement?