Get(RecordAccess)

Returns a number representing the current record's access privileges, assigned through the Custom Record Privileges dialog box.

Format 

Get ( RecordAccess )

Parameters 

None

Data type returned 

number

Originated in version 

6.0 or earlier

Description 

Returns:

  • 0 if the custom record privileges of the privilege set have neither View nor Edit privileges set to yes for the current record
  • 1 if the custom record privileges of the privilege set have View set to yes for the current record, or if View is set to limited and the calculation defined for limited access returns a value of true

    Note  If both View and Edit are set to yes, Get(RecordAccess) returns 2.

  • 2 if the custom record privileges of the privilege set have Edit set to yes for the current record, or if Edit is set to limited and the calculation defined for limited access returns a value of true

Notes 

  • Get(RecordAccess) only returns information about the privileges defined for accessing records. It ignores access privileges assigned through individual layouts. To fully check access to a record, consider the return values of the Get(LayoutAccess) function and Get(RecordAccess).
  • See Editing record access privileges for more details about limiting access to records.

Example 1 

Returns 1 when the record access is view-only.