I am trying to use ItemData to fill in the first row of a combo box into control1 and the second row of the combo box to fill into control2.
This is what I've tried:
Private Sub Form_Load()
Me!Bx1LabelBox.Requery
Me!Bx1Label.Value = _
Me!Bx1LabelBox.ItemData(0)
End Sub
This worked for control1. Now I want to add the next part for Control2. Where/How do I do that? This does not work:
Private Sub Form_Load()
Me!Bx1LabelBox.Requery
Me!Bx1Label.Value = _
Me!Bx1LabelBox.ItemData(0)
End Sub
Private Sub Form_Load()
Me!Bx2LabelBox.Requery
Me!Bx2Label.Value = _
Me!Bx2LabelBox.ItemData(1)
End Sub
I am new to VB. Please help!
Carly
This is what I've tried:
Private Sub Form_Load()
Me!Bx1LabelBox.Requery
Me!Bx1Label.Value = _
Me!Bx1LabelBox.ItemData(0)
End Sub
This worked for control1. Now I want to add the next part for Control2. Where/How do I do that? This does not work:
Private Sub Form_Load()
Me!Bx1LabelBox.Requery
Me!Bx1Label.Value = _
Me!Bx1LabelBox.ItemData(0)
End Sub
Private Sub Form_Load()
Me!Bx2LabelBox.Requery
Me!Bx2Label.Value = _
Me!Bx2LabelBox.ItemData(1)
End Sub
I am new to VB. Please help!
Carly