My main form has many tabbed subform pages, and a button for NEW record and one for EXISTING record. A user can access a specific existing record from a dropdown combobox that opens from that command button. Selecting a record returns to the MAIN form and populates all fields including those on all subforms. The subform tabs are NOT VISIBLE when the main form is originally loaded. After the selected existing record loads and the main form reopens, I want ALL of those subforms (tabs) that have data in any field to become visible (i.e. available for selection using its tab) on the main form, when it reopens. Remember that none of the subforms will be the CURRENT form so I cannot use the ME/ME! function. Essentially, I need a correct VBA code along the following lines;
IF subform is not null, then subform visible = true
I seem to be having difficulty referencing a subform that is not open/current ... twice. My subform and its controltab have the same name.
I will write the correct code for each subform specifically. My current thought is to put these as an AfterUpdate event in the code behind the action that occurs when the selection is made buy the user from the combobox.
					IF subform is not null, then subform visible = true
I seem to be having difficulty referencing a subform that is not open/current ... twice. My subform and its controltab have the same name.
I will write the correct code for each subform specifically. My current thought is to put these as an AfterUpdate event in the code behind the action that occurs when the selection is made buy the user from the combobox.
 
	 
	 Here are 2 accessible screen captures;
Here are 2 accessible screen captures;
Comment