... give an error dialog box . If i hit enter, the program continue . In place of the dialog box, i 'd like to write the error in a txt file and bypass the dialog box . How to ? oODBCK := TOdbc():New("DBNAME", "user", "password") oDbfa:=oOdbc:Query("SELECT Numobj,dtedeb,numnat,numdesc ...