Hello,
I am trying to load the values of a combo-box control that resides within a multi-tab control that is placed on a main form.
I am trying to load the values on the Load event of the main form by using this statement:
Code:
Call InitializeCombo(Forms("DataCheck").Controls("Arranger").Controls("Title"), qstrcProfessions, 1, ",")
The parameters are as follows: combo-box control, query to be executed to retrieve the values, number of columns, and special character that might be found in a string.
When I try that code, I get the following error: The expression you entered refers to an object that is closed or doesn't exist
This seems to happen only when I try to access a control inside a tab that is not the first tab, which is opened by default when the main form loads.
Is there any way to work this issue around? If that line should not go placed in the Load event of the Main form, then inside what event of its own should it be placed?
Many thanks for your help.