G
Guest
I am trying to make 3 combo boxes display the first items in their lists when
the form opens but access is giving me error 2448 "You can't assign a value
to this object".
Below is the code I am trying to use. Can anybody tell me what could be
wrong with this OR provide a code that will work. Basically, I want the
combos to display a value when the form opens up.
Pele
Private Sub Form_Open(Cancel As Integer)
Me.[CboJobTitle].Value = Me.[CboJobTitle].ItemData(1)
Me.[CboSchedule].Value = Me.[CboSchedule].ItemData(1)
Me.[cboShift].Value = Me.[cboShift].ItemData(1)
end sub
the form opens but access is giving me error 2448 "You can't assign a value
to this object".
Below is the code I am trying to use. Can anybody tell me what could be
wrong with this OR provide a code that will work. Basically, I want the
combos to display a value when the form opens up.
Pele
Private Sub Form_Open(Cancel As Integer)
Me.[CboJobTitle].Value = Me.[CboJobTitle].ItemData(1)
Me.[CboSchedule].Value = Me.[CboSchedule].ItemData(1)
Me.[cboShift].Value = Me.[cboShift].ItemData(1)
end sub