Hola
Podrías hacer algo así
Código asp:
Ver originalSQL ="UPDATE tabla SET "
SQL = SQL & "NOMBRE = '"&nombre&"' " ' Este campo siempre hay que editarlo para evitar el problema con las comas
if ip <> "" then
SQL = SQL & ", IP = "&ip&" "
end if
if anexo <> "" then
SQL = SQL & ", ANEXO = "&anexo&" "
end if
.........
SQL = SQL & "WHERE NOMBRE = '"&nombre&"'"
Suerte