C
chemicals
I am trying to show Project Managers on a report using Group By...which
worked great because the records had only one field to group on "PM".
Now we have switched to a primary (PM1) and secondary (PM2) Project Managers
and I would like to still show on the report all project records that each PM
is assigned to (whether their name is in the Primary or Secondary field)
I have tried this SQL but It doesn't Group by each person:
SELECT ProgramName, ClientName, LiveDate, ShutdownDate, PD1, PD2,
ProductStage, ProgramStage
FROM Programs
WHERE (ProgramStage <> 'Closed') AND (ProgramStage <> 'Ops Phase 1')
AND (ProgramStage <> 'Ops Phase 2')
GROUP BY ProgramName, ClientName, LiveDate, ShutdownDate, PD1, PD2,
ProductStage, ProgramStage
worked great because the records had only one field to group on "PM".
Now we have switched to a primary (PM1) and secondary (PM2) Project Managers
and I would like to still show on the report all project records that each PM
is assigned to (whether their name is in the Primary or Secondary field)
I have tried this SQL but It doesn't Group by each person:
SELECT ProgramName, ClientName, LiveDate, ShutdownDate, PD1, PD2,
ProductStage, ProgramStage
FROM Programs
WHERE (ProgramStage <> 'Closed') AND (ProgramStage <> 'Ops Phase 1')
AND (ProgramStage <> 'Ops Phase 2')
GROUP BY ProgramName, ClientName, LiveDate, ShutdownDate, PD1, PD2,
ProductStage, ProgramStage