Ho questo codice per cambiare tre campi di testo in un db tramite UPDATE
il codice e' questo

<%
dim id
dim img
dim imglarge
dim text

id=request.form("id")
img=request.form("img")
imglarge=request.form("imglarge")
text=request.form("text")



dim CurPath
dim DBfile
dim conn
dim DSNtemp
dim SQLstmt
dim rs
CurPath = request.servervariables("path_translated")
DBfile="../mdb-database/myp.mdb"
CurPath=left(CurPath,instrrev(CurPath,"\")) & DBfile
Set conn = Server.CreateObject("ADODB.Connection")
DSNtemp = "DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp = DSNtemp & "DBQ=" & CurPath
conn.Open DSNtemp

SQLstmt = "UPDATE gallery"
SQLstmt = SQLstmt & " SET img='" & img & "',"
SQLstmt = SQLstmt & " imglarge='" & imglarge & "',"
SQLstmt = SQLstmt & " text='" & text & "'"
SQLstmt = SQLstmt & " WHERE id=" & id
set rs = conn.execute(SQLstmt)

response.write "Changed"

Conn.Close
set conn=nothing
set rs=nothing

%>

ma ricevo questo errore che con un altro database identico non ricevevo:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.

/myp/cambia.asp, line 65

Se qualcuno vede l'errore di sintassi che non riesco a trovare lo ringrazio fin da subito...