9
Answers

error in update command

Bahar Jalali

Bahar Jalali

12y
3.1k
1
hi
i have a source code that check some email address and deactive emails that are invalid.
it's my update command

Dim com As New SqlCommand("Update Newsletter_Emails Set Active='False' Where (Email IN (" & Error_Email & "))", con)

also i have tested some option like ... Where (Email IN " & Error_Email & ")", con) 
and ... Where Email IN '" & Error_Email & "'", con) 

but any way it has some error :
Unclosed quotation mark after the character string ''))'.
Incorrect syntax near ''))'.

any suggestion?
thanks in advance
Answers (9)