I have table and i want to set value if cell=null then set record by textbox . here is my table
--------------------
col1| col2| Note
1 2 aaa
5 5 (*) set record Only here if cell is Null
42 14
47 55
------------------
here is my code and my problem is the query write for every cell that is Null and I want to write only for next cell that before it is not null
con.Open()
query = " update firealarm set Note=@Note where Note Is Null"
Dim command As SqlCommand = New SqlCommand(query, con)
command.Parameters.Add(New SqlParameter("@Note", SqlDbType.NVarChar))
command.Parameters("@Note").Value = Notebox.Text.ToString
command.ExecuteNonQuery()
con.Close()