Techniques for providing limited access to data stored in records of
databases are disclosed. The techniques can be implemented in a database
program operating on a computer system. The database program can provide
a Graphical User Interface that can be used to conveniently define
calculation expressions that limit operations on the records of the
database. The calculation expression can be defined for a user or group
of users with respect to a particular operation that can be requested to
be performed on the records of the database. The calculation expression
can be defined based on fields of the records, as well as other
information, for example, various state variables of the database (e.g.,
date, time, number of records, etc.) The calculation expression can, in
turn, be evaluated with respect to each record to determine whether a
request to perform an operation on that particular record should be
granted or denied.