How do i take data from a table column example Customer_Name and list it in a combo box in vb6 ?
Take data from column table and list in a combo box......
Collapse
X
-
Tags: None
-
Originally posted by redskycorpHow do i take data from a table column example Customer_Name and list it in a combo box in vb6 ?
1. You are already connected with the database.
2. Rs recordset is available at this point.
All you need is check if there exist at least a record in the recordset Rs
Code:cboCustomerName.Clear if not rs.eof then do until rs.eof cboCustomerName.addItem Rs!Customer_Name rs.movenext loop end if
-
-
Originally posted by fplescoMy assumptions are,
1. You are already connected with the database.
2. Rs recordset is available at this point.
All you need is check if there exist at least a record in the recordset Rs
Code:cboCustomerName.Clear if not rs.eof then do until rs.eof cboCustomerName.addItem Rs!Customer_Name rs.movenext loop end if
just need little help with regards to above problem. I already did the same thing as you send to him but my problem is I also want to display in text box the the customer address of the chosen combo box item which is in the next field of the customer name. Hope you help me thanks.
ronmoana.Comment
Comment