LOTUS CONNECTORS
The ODBCConnection, ODBCQuery, and ODBCResultSet classes all contain the following methods:
If an operation is successful, the return number is DBstsSUCCESS. Any other number indicates an error.
You can test operations on an individual basis by calling the above methods after each operation. The following code shows the technique for checking the last operation and exiting if an error occurred:
Example