To close the current database, choose the cLose option from the DATABASE menu and press RETURN. The message Database Closed appears at the bottom of the screen, which indicates that the current database is closed. The database name disappears from the Help line, but the database server name remains.
If you select the cLose option when no database name is on the Help line, DB–Access displays an error message.
If you begin a transaction but do not commit it or roll it back, and then try to close a database with transactions, the TRANSACTION menu appears, as Figure 41 shows.
TRANSACTION: Commit Rollback
Commit the current transaction.
------------- demodb@dbserver1 --------------- Press CTRL-W for Help ------The TRANSACTION menu ensures that you either commit or roll back an active transaction before you close the current database. The following list shows the two menu options:
Press the Y key or RETURN and DB–Access commits the transactions and closes the database.
Press RETURN, and DB–Access rolls back the transactions and closes the database.
If you press the Interrupt key, DB–Access displays the DATABASE menu without committing or rolling back the transactions.
The TRANSACTION menu also appears whenever you attempt to open a new database or try to leave the DB–Access menu system without first terminating a transaction. These instances are the only times when you can access the TRANSACTION menu from DB–Access.