Hello programmers!.
Please help me. :(
I have here a combobx1 that has a value of Mr.A and Mr.B. want that if i choose from my combobox1 the selected value will go to my sql database.
bernardz26
0
Newbie Poster
Recommended Answers
Jump to Postok you can do like this
dim con as new sqlconnection("connection string") dim cmd as new sqlcommand con.open() cmd.connection= con cmd.commandtext="insert into table1 (field1) values ("& combobox1.text &")" cmd.executenonquery() con.close
you can use this code at any button click event to save the value of combo in …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.