I have created a simple form in my Access database. The form has a combo box on it (cboMyCombo). I "drew" the combo box on the form using the toolbox from the Design tab of the ribbon while in "Form" view. I have insured that the combo box is named correctly.
In the form's Load event, I am trying to use that combo box in code, like this:
Private Sub Form_Load()
SomeFunctionThatExpectsComboBox cboMyCombo, true
End Sub
When this code runs, I get:
Run-time error '91':
Object variable or With block variable not set
When I am creating the code, and I type "Me." the intellisense lists the cboMyCombo box control that I created so, it appears everything is ok.
Can someone help me figure out why the control appears on the form, and why it is reflected in intellisense but, it is NULL when the code runs?
Thanks for any help you can provide.