Applies To Action query, Crosstab query, Parameter query, Select query.
Description
You can use the RunPermissions property in a multiuser environment with a secure workgroup to override the existing user permissions. This allows you to view a query or run an append, delete, make-table, or update query that you otherwise wouldn't have permission to run. For example, as a user, you may have read-only permission for queries, while the owner of the queries has read/write permission. If the owner sets the RunPermissions property to specify the owner's permissions, you can run an append query to add records to a table.
Setting
The RunPermissions property uses the following settings.
Setting | Description |
Owner's | All users are allowed the owner's permissions to view or run the query. |
User's | (Default) Users have only their own permissions to view or run the query. |
See Also WITH OWNERACCESS OPTION Declaration ("SQL Language Reference").
Example The following example is a select query based on the Categories table that enables all users to have the owner's permissions for the query. You enter this SQL statement in SQL view of the Query window.SELECT Categories.CategoryID, Categories.CategoryName, Categories.Description
FROM Categories WITH OWNERACCESS OPTION;