I have created a view that filters a list based on an OR
condition between several columns using the [Me]
keyword. I want to write the same kind of view, but that allows a person to be selected (i.e. allows you to view the items where another person has any of the roles).
I can do this in Access pointed against the list with the following query
SELECT [My List].[My Name], [My List].[Role 1], [My List].[Role 2], [My List].[Role 3], [My List].[Role 4]
FROM [My List]
INNER JOIN [User Information List]
ON ([User Information List].ID=[My List].[Role 1])
Or ([User Information List].ID=[My List].[Role 2])
Or ([User Information List].ID=[My List].[Role 3])
Or ([User Information List].ID=[My List].[Role 4])
WHERE UCase([User Information List].[User name])=UCase([USER_ID]);
but I can't figure out how to pass in the User ID as a parameter in SharePoint, perhaps it can't be done. It also occurred to me that grouping by this value would be sufficient, but I can't find a way to group by an or condition either...