I have a frmCalendar that allows users to select a date from a "popup" calendar. I call it from two different forms. The on_close event of frmCalendar calls the Updated_Dates public sub of the parent form with the line:
I have frm1, where frm1 is the main form and on the on_close event of the frmCalendar it successfully calls the parent's public sub. I have a second form that is a sub, of a sub and it doens't call the parent's public sub correctly. Both forms have the identical "public sub updated_dates(strDateControl as Control)" code.
I've checked the value of gblctlSelectedDate.Parent.Name and it is referring to the correct form. I've checked gblctlSelectedDate.Name and it is pointing to the correct control name.
Any ideas? I've tried specifying the sub form through the entire form hierarchy starting with the main form down, but that doesn't work either. I get no error messages, it just steps past the call (with a flicker of the screen) without doing it.