myCommand.CommandText = "update Stutable set password as ('" & TextBox2.Text & "')"" where rollno = " & TextBox3.Text
please can you tell me what is the error in the above statement iam using vb and access database
myCommand.CommandText = "update Stutable set password as ('" & TextBox2.Text & "')"" where rollno = " & TextBox3.Text
please can you tell me what is the error in the above statement iam using vb and access database
myCommand.CommandText = "update Stutable set password as ('" & TextBox2.Text & "')"" where rollno = " & TextBox3.Text
please can you tell me what is the error in the above statement iam using vb and access database
myCommand.CommandText = "update Stutable set password = '" & TextBox2.Text & "'" where rollno = " & TextBox3.Text
Mark as solved if it helps !!!
still error is there
End of statement of expected
SqlCommand comm = new SqlCommand();
comm.CommandText = "update table set field1=@field1 where no=@no";
comm.Parameters.AddWithValue("@field1", "pass the parameter value");
comm.Parameters.AddWithValue("@no", "pass the parameter value");
keep your code organised..
hope that helps
Hi,
Hope this will work,
myCommand.CommandText = "update Stutable set password = '" & TextBox2.Text & "' where rollno = " & TextBox3.Text
"update Stutable set password as ('" & TextBox2.Text & "') where rollno = " & TextBox3.Text
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.