I am trying to populate a cbobox1 but i get nothing. This exact same code works on my list box1 but not my combo box. can someone tell me why this is ?
'this code works.
'populates lstbox 1
Do Until rsContacts.EOF
lstbox1.AddItem rsContacts!intContactId & "," & rsContacts!txtFirstName
rsContacts.MoveNext
Loop
'below code wont work ??????????
'populates cboBox1
'populate cbobox1 with values from a specified list
With cboBox1
.RowSource = ""
.ColumnCount = 2
.RowSourceType = "Value List"
.LimitToList = True
Do Until rsContacts.EOF
.AddItem rsContacts!intContactId
rsContacts.MoveNext
Loop
End With
thnaks in advance
'this code works.
'populates lstbox 1
Do Until rsContacts.EOF
lstbox1.AddItem rsContacts!intContactId & "," & rsContacts!txtFirstName
rsContacts.MoveNext
Loop
'below code wont work ??????????
'populates cboBox1
'populate cbobox1 with values from a specified list
With cboBox1
.RowSource = ""
.ColumnCount = 2
.RowSourceType = "Value List"
.LimitToList = True
Do Until rsContacts.EOF
.AddItem rsContacts!intContactId
rsContacts.MoveNext
Loop
End With
thnaks in advance