Question : Access Query Design Where/Or Criteria Trouble (SQL Where)

I am trying to design an Access 2007 query to count the number of hours earned by certain people in certain positions.

This is what I have tried to make (screenshot), but I've forgotten how to do it properly, as it gives me the error message (same screenshot) when I try to run it.

Basically, the fields like [Data].[SSO] through [Data].[CNO] and [Data].[OpsEval] through [Data].[CrewObsv1] often contain multiple names seperated by slashes. I need them to get credit even if their name is one of many listed within that field, so I need to use LIKE somehow I guess.

If their name appears in [Data].[SSO] through [Data].[CNO], then the hours for that [Data] table record (as listed in the field [Data].[BoardOpsHours] should get summed up for the count.
This is likewise for the other two positions with the other count.
The field [User Name] in the table [AllUsers] contains a list of all possible user names.
The result I'm looking for should be like this:
---------------------------------------
User Name           Board Hours     Obs Hours
Albert, John          23                     15
Bunny, Bugs         15                       5
Monk, Adrian           2                     89
Simpson, Homer     1                       2
(...)

What am I doing wrong?

P.S. - The SQL generated by the screenshot is given in the code box below.
Code Snippet:
1:
2:
3:
4:
5:
SELECT AllUsers.[User Name], Sum(Data.BoardOpsHours) AS SumOfBoardOpsHours, Sum(Data.ObserversHours) AS SumOfObserversHours
FROM Data, AllUsers
GROUP BY AllUsers.[User Name]
HAVING (([Data].[SSO] Like "*[AllUsers].[User Name]*") AND ([Data].[OpsEval] Like "*[AllUsers].User Name]*")) OR (([Data].[CRS] Like "*[AllUsers].[User Name]*") AND ([Data].[CrewObsv1] Like "*[AllUsers].[UserName]*")) OR (([Data].[OAC] Like "*[AllUsers].[User Name]*")) OR (([Data].[BOP] Like "*[AllUsers].[User Name]*")) OR (([Data].[STA] Like "*[AllUsers].[User Name]*")) OR (([Data].[CNO] Like "*[AllUsers].[User Name]*"))
ORDER BY AllUsers.[User Name];

Answer : Access Query Design Where/Or Criteria Trouble (SQL Where)

try this
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
SELECT AllUsers.[User Name], Sum(Data.BoardOpsHours) AS SumOfBoardOpsHours
FROM Data, AllUsers
WHERE Data.SSO Like "*" + [AllUsers].[User Name] + "*" 
   OR Data.CRS Like "*" + [AllUsers].[User Name] + "*" 
   OR Data.OAC Like "*" + [AllUsers].[User Name] + "*" 
   OR Data.BOP Like "*" + [AllUsers].[User Name] + "*" 
   OR Data.STA Like "*" + [AllUsers].[User Name] + "*" 
   OR Data.CNO Like "*" + [AllUsers].[User Name] + "*" 
GROUP BY AllUsers.[User Name]
ORDER BY AllUsers.[User Name];
Random Solutions  
 
programming4us programming4us