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!!!
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!!!
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: