in ASP?
Beh, prima di tutto devi verificare il campo

codice:
if rs("nomecampo") = "0" then
	SQL = "UPDATE NOMETABELLA SET CAMPO='X' WHERE ID =" & IDRECORD
end if
poi puoi fare il controllo
codice:
if SQL <> "" then
	esegui SQL
end if
Ciao
Lele