Agree with SA. Use
parametrized queries. And here I point out some of your mistakes. Also suggestion(s)
sql = "UPDATE Info SET [add] = '" & txtadd.Text & "'," _
& "[phno] = '" & txtphno.Text & "'," _
& "[emailid] = '" & txtemailid.Text & "'," _
& "[gender] = '" & txtgender.Text & "'," _
& "[dob] = '" & txtdob.Text & "'," _
& "[quali] = '" & txtqual.Text & "'," _
& "[designation] = '" & txtdegn.Text & "', " _
& "[salary] = '" & txtsal.Text & "' ," _
& "[bank] = '" & txtbank.Text & "'" _
& "WHERE name = " & cmbname.Text & ""
Put square brackets for the field names.
Here in your code, name field is string type so you should have included the single quotes(
WHERE name = '" & cmbname.Text & "'"
). And give a space before the
WHERE
keyword.