Equinox Online Help - Language Reference - A to Z

Home

UserPermission

Applies to
SyntaxUserPermission (PermNumberExpression)
Action[Function] Returns True or False as to whether the user currently logged in has a particular permission.
ScopeUsable anywhere.
Notes

This function returns True if the current user has the permission whose number is in PermNumberExpression, otherwise False. The permission numbers are as follows:

1Database definition20Design a Menu
2Dictionary definition21Execute a Form
3Workarea definition22Execute a Query
4Procedure definition23Execute a Process
5View Records24Execute a Report
6Insert Records25Execute an Import
7Edit Records26Execute an Export
8Delete Records27Execute a Method
9Access Main Menu28Execute a Menu
10Access Select Dictionary29Empty a Database
11Access Software Settings30Optimise a Database
12Access System Resources31Access Index Management
13Design a Form32Access User Management
14Design a Query33Access User Group Management
15Design a Process34Access Security Management
16Design a Report35Delete Files
17Design an Import36Bypass Security
18Design an Export37Allow Multiple Logins
19Design a Method
CategoryUser, groups and ESS
See Also ChangePassword, FirstUserGroup, FirstUserName, UserCreate, NextUserGroup, NextUserName, SetUserGroup, UserAccountExpiry, UserDelete, UserDetails, UserGroup, UserName, UserPasswordExpiry
Example

The following example determines whether the user who is currently logged in has permission to delete records via a button on a form.

if not UserPermission(8) then
Alert "Sorry you are not allowed to delete Records."
else
DeleteRecord true
end if