Page ODBCDatabase, code:
Var db As New ODBCDatabase
db.DataSource = “”
Try
db.Connect
// proceed with database operations
Catch error As DatabaseExcecption
MessageBox("Error: " + error.ErrorMessage)
End Try
Word to modify: DatabaseException (look carefully).