... lnReturn = SQLEXEC(lnHandle,"SELECT * FROM Customer") IF lnReturn < 0 * Get ODBC errors AERROR(laErrors) * Process ODBC errors .... ENDIF