Hi,
Yep.
Rights ' tableName
Action, Type ' field name
and, as record, just enumerate those that are "yes". I.E.: if the pair
(Action, Type) is not in the table, then the right is NO ( the role type
cannot perform the action task).
If 0=DCount("*", "Rights", "Action=""" & Action & """ AND type=" &
type & """" ) Then
... no access...
Else
... access...
End If
Hoping it may help,
Vanderghast, Access MVP
> Does any one have some db design about access right?
>
[quoted text clipped - 7 lines]
> Task C | No | No | No | No | No |
> Task D | Yes | Yes | Yes | Yes | Yes |