Returns the access level of the current user for DBF table security.

Syntax

ACCESS( )

Description

In DBF table security, an access level is assigned to each user. The access level is a number from 1 to 8, with 1 being the highest level of access. Use ACCESS( ) to build security into an application. The access level returned can be used to test privileges assigned with PROTECT. If a user is not logged in to the application, ACCESS( ) returns 0 (zero).

If you write programs that use encrypted files, check the user's access level early in the program. If ACCESS( ) returns zero, your program might prompt the user to log in, or to contact the system administrator for assistance.

For more information, see PROTECT.