pass value of a ComboBox in SQL statement

CharlieChau

Active member
Joined
Jun 15, 2004
Messages
26
Programming Experience
Beginner
Hi,

Could someone help me to pass a value of a ComboBox into in a SQL statement, please.

Thanks,
/CC.
 

mzim

Well-known member
Joined
Jun 3, 2004
Messages
187
Location
Other side of the rock
Programming Experience
1-3
CharlieChau said:
Hi,

Could someone help me to pass a value of a ComboBox into in a SQL statement, please.

Thanks,
/CC.

what d ya mean passing a value in sql statement?

this one?
VB.NET:
dim cm as new sqlcommand("insert into sampletable values '" & combobox1.text & "'",cn)
 
Top Bottom