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!
