SQLite insert data from variables: error unrecognized token
Posted: Tue Jun 02, 2015 12:20 pm
this bis my code:
error display: unrecognized token.
where is the error?
Thanks!
Code: Select all
on mouseUp
databaseConnect
local tFname
put "myname" into Nome
put "myemail" into Mail
put getDatabaseID() into tDatabaseID
put "INSERT into contact_details (nome, email) VALUES (' " & Nome& " '," & Mail& "');" into tSQL
revExecuteSQL tDatabaseID, tSQL
put the result into tRes
if tRes is not a number then
answer error "There was a problem saving this record: " & tRes as sheet
end if
end mouseUp
error display: unrecognized token.
where is the error?
Thanks!