Hi, I coded (too quickly) the following lines:
sqlite.SQL := 'SELECT COUNT(id) FROM utenti WHERE id = '+id_utente+' AND password="'+editOldPsw.Text+'"'; and a few lines later: sqlite.SQL:= 'UPDATE utenti SET password="'+editNewPsw.Text+'", scadenza_psw=date("now","+90 day") WHERE id = '+id_utente; The variable id_utente is an integer which means that I forgot to use IntToStr. However I get the errors (relating to these two lines) in the attachment...shouldn't they be the same ? The first one seems to be written the other way round. Cheers and beers, R#
<<attachment: error1.png>>