Hello,
I am trying to set the default value of one of the columns in a 3-column combobox.
The strange thing is- when I open the form, I do see the combobox defaulting to the value I want, BUT it gives me RunTime error 424: Object Required and highlights the last line in the sub.
Does anyone have an explanation for this? If it defaults, why does it give me an error? How can I get rid of it?
Thank you!
I am trying to set the default value of one of the columns in a 3-column combobox.
PHP:
Private Sub Form_Load()
‘some calculations to arrive at CounterNum here …
CounterNum = rs_getCounter.Fields(0)
CounterNumCombo.Column(2).DefaultValue = CounterNum - 1
End Sub
The strange thing is- when I open the form, I do see the combobox defaulting to the value I want, BUT it gives me RunTime error 424: Object Required and highlights the last line in the sub.
Does anyone have an explanation for this? If it defaults, why does it give me an error? How can I get rid of it?
Thank you!