Hi...
how to insert a listbox items in single field database?i m using Access.
Insertion of listbox value in to database.
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Soumya Surendran84 reputationPosted May 20, 2011, 4:02 AM EDT
for(int i=0;i
cmd.CommandText="insert into table_name(field_name) values('"+listBox1.Items[i].toString()+"')";
cmd.ExecuteNonQuery;
}
Suthish NairRank #92 · 22.8K reputationPosted May 20, 2011, 7:15 AM EDT
guna sakthi14 reputationPosted May 20, 2011, 9:52 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted May 20, 2011, 10:40 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted May 21, 2011, 2:31 AM EDT