I'm using Visual Studio c# (spanish)
The code:
cmd.CommandText = "UPDATE cursos SET saldo = saldo - '" + cantidad.ToString() + "' where id = '" + vID + "' ";
vID is a string variable.
The problem is here:
Don't work where id = '" + vID + "' neither where id = '" + vID.ToString() + "'
The error:
(Translating) Don't match data type in criteria expression
saldo working OK.
Can you help me?. Thx.