In Access 2016, I implemented a cascading combo box in a subform by specifying the row source's criteria as follows
This works well for one main form, but doesn't work when the subform is reused by other main forms. Is there a way to refer to the subform control without specifying the main form so that the subform can be reused?
I've tried using "Me" and "[Forms]![My_Subform]" but it doesn't work. Apparently, what normally works in a regular VBA script doesn't work as a criteria's expression.
Thank you.
Code:
[Forms]![My_Main_Form].[Form]![My_Subform].[Form]![My_Subform_Control]
This works well for one main form, but doesn't work when the subform is reused by other main forms. Is there a way to refer to the subform control without specifying the main form so that the subform can be reused?
I've tried using "Me" and "[Forms]![My_Subform]" but it doesn't work. Apparently, what normally works in a regular VBA script doesn't work as a criteria's expression.
Thank you.
Last edited: