* Your code: IF EMPTY(tcSql) && Processing via an SQLPREPARE() statement tcSql = " " && So Error Routine has character value lnResult = SQLEXEC(tnConnection) && ?????What does it mean? What is exatly tnConnection? And what is your sqlprepare line looks like?