The code segment below initializes the three rows of a 2 column combo in the OnOpen Event of a form. The format of the 2 columns is 0";1". I want the combo box to display the default value, the CurYr, when the form opens.
"Me.cboYears.DefaultValue = CurYr" isn't getting the job done.
Once I go through a dropdown action everything works properly, it's just when the form opens that the combo appears blank.
Code:
Me.cboYears.RowSource = lngCurYrSun & "," & CurYr & ";" & _
lngCurYrSunMinus1 & "," & CurYr - 1 & ";" & _
lngCurYrSunMinus2 & "," & CurYr - 2
Me.cboYears.DefaultValue = CurYr