--- Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant) Dim role As Variant role = Evaluate ( "@UserNamesList" ) If Isnull(Arraygetindex(role,"[Admin]")) Then Messagebox "この処理は禁止されています。" Continue = False Exit Sub End If Continue=True end sub ---