Alexandre
02-23-2001, 01:17 AM
I am facing the following problem: In a main form I have three imbricated sub forms (one related to provinces, contaning one related to municipes, containing one related to cities).
Based on the level of approach (national, regional, local) chosen in a combobox of the main form, I would like either only the two first level of subform to be loaded, or the three of them.
Making the third level sub form visible-invisible using the after update event of my main form is not a satisfying approach: I would like the after update event to make the third level sub form unload, or to replace the whole set of three imbricated subforms by another (pre-created) with only two levels.
Resuming: how to unload a sub form (and eventually load another one) using the After Maj event of the main form?
Many thanks in advance for any help.
Based on the level of approach (national, regional, local) chosen in a combobox of the main form, I would like either only the two first level of subform to be loaded, or the three of them.
Making the third level sub form visible-invisible using the after update event of my main form is not a satisfying approach: I would like the after update event to make the third level sub form unload, or to replace the whole set of three imbricated subforms by another (pre-created) with only two levels.
Resuming: how to unload a sub form (and eventually load another one) using the After Maj event of the main form?
Many thanks in advance for any help.