* Suppress ODBC error dialog =SQLSETPROP(0,"DispWarnings",.f.) * Suppres login dialog =SQLSETPROP(0,"DispLogin",3) sqlHandler = SQLSTRINGCONNECT(your_conn_string) IF sqlHandler < 0 MESSAGEBOX([No connection]) AERROR(err_array) MESSAGEBOX(err_array(1,2)) * Process this error ENDIF