HeLp PlEaSe...!

shelly121

Member
Joined
Feb 17, 2005
Messages
15
Programming Experience
Beginner
Coding a Combo Box...

plz help, basically iv now finished the search button that is linked to my dtabase(access) and its all workin if i was just to tyoe the clients name in the text box, but considerin that if someone was to use this application that didnt know the clients names, how would i do the code for a combo box instead of a text box?? i hought it would be something liek this, but i have a feeling its very wrong!!!:p

PrivateSub cmbSearch_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbSearch.SelectedIndexChanged
RS.Open("SELECT Name AS Expr9 FROM Client", CN, 1, 2)

cmbSearch.Text =
CStr(RS.Fields("Name").Value)EndSub


 
Last edited by a moderator:
Hello,

This my second request. Please put valid subject lines that are relevant to your message topic. "Please Help" is unacceptable for use and people helping you.

Thank you.
 
Back
Top