Checkboxlist and database - Input needed

V

VK

Hi:

Would this work: Trying to insert selected checkboxlist values into
database.

For iBio = 0 To CheckBoxList1.Items.Count - 1
If CheckBoxList1.Items(iBio).Selected Then
sqlinsert = "INSERT INTO tProposal_x_manager (doc_num, manager_id)
VALUES("
sqlinsert = sqlinsert & doc_num & ","
sqlinsert = sqlinsert & CheckBoxList1.Items(iBio).Value & ")"
myComm1.ExecuteNonQuery()
End If
Next iBio

Would this work - or would these values have to be stored as string and
parsed and inserted into database?

many thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top