I'm doing a project in vb6 i have a data where when i search it should give multiple answers in combo box. example i have a debtor code each debtor code as more than one addresses when i search in one debtor code how can i get multiple addresses in the combo box. my search engine command as follows
Adodc1.Recordset.MoveFirst
Adodc1.Recordset.Find "DEBTOR_CODE = '" & Text11.Text & "'"
If Adodc1.Recordset.EOF = True Or Adodc1.Recordset.BOF = True Then
MsgBox "Record Not Found!"
vbApplicationModal Adodc1.Recordset.MoveFirst
Me.Combo1.SetFocus
Me.Combo1.ListIndex = Me.Text11.Text
End If
Can anyone help me to solve this
Adodc1.Recordset.MoveFirst
Adodc1.Recordset.Find "DEBTOR_CODE = '" & Text11.Text & "'"
If Adodc1.Recordset.EOF = True Or Adodc1.Recordset.BOF = True Then
MsgBox "Record Not Found!"
vbApplicationModal Adodc1.Recordset.MoveFirst
Me.Combo1.SetFocus
Me.Combo1.ListIndex = Me.Text11.Text
End If
Can anyone help me to solve this