I got error like syntaxt error in update statment
strcmd="update emp set Name='"+txtname.Text+"',where id="+tsxid.Text
cmd=new OledbCommand(strcmd,con);
cmd.ExecuteNonquery();
I got error like syntaxt error in update statment
strcmd="update emp set Name='"+txtname.Text+"',where id="+tsxid.Text
cmd=new OledbCommand(strcmd,con);
cmd.ExecuteNonquery();
Missing quotes around the last item tsxid.Text
also, there's a comma before WHERE
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.