val1 = 'test1' val2 = 3456.000 val3 = 1 SELECT (Ca.Alias) REPLACE Abc WITH val1,; xyz WITH val2,; cde WITH val3 IF .NOT. TableUpdate(0, 1, Ca.Alias) && Erro happened AERROR(aErr) DIPLAY MEMORY LIKE aErr && Or do something that handles the erros ENDIFBTW If you Use ODBC There is no need to configure DSN, You can use SQLSTRINGCONNECT() instead