...mi perdo sempre e con tanta rabbia poi faccio più caos che altro!!!

Sto aggiornando una tabella MySql da un form.
Uso dei replace iniziali per eliminare l'eventuale problema di apici.
Quindi ho questa query per l'UPDATE:

codice:
sql="UPDATE Tab37 SET ANNO1 = " & anno1r & ", TESTO1 = " & testo1r & ", ANNO2 = " & anno2r & ", TESTO2 = " & testo2r & ", ANNO3 = " & anno3r & ", TESTO3 = " & testo3r & " WHERE ID = " & idr
anno1r, anno2r, anno3r, testi1r, testo2r, testo3r e idr sono tutti i risultati dei replace...

Però ho questo errore:

codice:
Microsoft OLE DB Provider for ODBC Drivers error '80040e09' 
[TCX][MyODBC]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Ciao e grazie in anticipo!