FileDatabaseCompact @Command (Formula Language)

Compacts the white space in a database, and at the same time, converts the old database to the new format.


@Command( [FileDatabaseCompact] )


A database must be open, or selected on the workspace. Manager access is required to compact a database located on a server. No access level is required to compact a local database.

This command does not work on the Web.


This formula, when added as the code in an action button on a form in the TESTING.NSF database, compacts the TESTING.NSF database when you click the action button.

A message box displays indicating that the database is now being compacted. After you click the OK button, the status bar indicates when the database has been compacted by displaying the message, "Finished compacting testing."