By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
they have access to perform an operation.
ie Put this code in the Querydocumentdelete event of a database script to
control deleting of documents in a database (this will even prevent a user with
delete access from deleting if they do not have the specified role).
Dim roles As Variant
roles = Evaluate("@UserRoles")
flag = False
Forall r In roles
If Cstr(r) = "[DocDelete]" Then flag = True
If flag <> True Then
Messagebox "You do not have access to delete documents.", 0+64+0+0,"Error"
Continue = False