I have a main form MYMAIN with two subforms in it MYSUBONE and MYSUBTWO.
I have "on current" events in each subform that update textbox in the other subform.
My problem arises when the forms are being loaded. The "on current" event is triggered when the subform "MYSUBONE" is loaded (BEFORE "MYSUBTWO" is loaded) and it tries to update a textbox in MYSUBTWO which is still not yet loaded. So error is triggered in the event procedure.
How do I check in my "on current" event procedure (in VBA?) for MYSUBONE to check if the MYSUBTWO subform is not yet loaded.
on-current-mysubone if mysubtwo is not loaded then update mysubtwo.textbox = ... end if
I tried the "Isloaded" function in the sample database "Northwind" but doesn't seem to work. how do i check if subform is not yet loaded?
Or could I just ignore error and use something like "if error, exit function"?