Use localFoxproTable Scan lnsuccess = SQLEXEC(gnConnHandle, ; "INSERT INTO Sync_Box (field1) values (?localFoxproTable.field1)") if m.lnSuccess < 0 ExplainError() endif Endscan Function ExplainError LPARAMETERS tcSQL tcSQL = EVL(m.tcSQL,'') LOCAL ARRAY arrCheck[1] LOCAL lcError,ix Aerror(arrCheck) lcError = "SQL:"+m.tcSQL+chr(13) For ix=1 to 7 lcError = m.lcError+trans( arrCheck [m.ix])+ chr(13) Endfor Messagebox(m.lcError,0,'Error definition')PS: ? before localFoxproTable.field1 to mean that it's a parameter. Otherwise that insert command would seek for localFoxproTable.field1 at backend (and unlikely to find something there that matches, if by chance there is a match then you'd be unintentionally inserting wrong values).