vb.net - data type mismatch in criteria expression in asp.net -
i trying delete row ms access database using vb.net. getting above mentioned error. fields text in database.
here code :
dim deleterow() datarow deleterow = ds.tables("ccc").select("question = '" & questionlist(x).text & "'") deleterow(0).delete() da.update(ds,"ccc")
vishal.... of questions(x).text values contain single quote? single quotes cause error select statement. e.g.
if question what's name? select statement select(question = 'what's name>?')
this error @ 's - i'm not sure if close bracket cause error in example above have
select(question = '390) computer ?')
this may error @ first close bracket.