Question : Group on a Report "like"

Experts, I have a report that is gouped on [Status2].  I need a "like" statement to group all of the "like" status's.  ie:  I have many status with "Tendering" in the status but need all the ones with "Tendering" to be grouped together.  

How can I do that?  I think it is sometehing to do with the query builder but dont know exact steps....thank you

here is the SQL:
SELECT Projects.[Project Name], Projects.Status2, Projects.ID, Projects.EndUserID, Projects.Priority
FROM Projects
ORDER BY Projects.Status2;

Answer : Group on a Report "like"

Hi pdvsa,

Based on your comment "I will not be able to use that suggestion becasue there are so many to include to cover all.  I have over 20 status I need to group on." I don't understand why you are now pursuing the approach given by capricorn1, which is essentially the same (using instr instead of LIKE - same outcome).

If you are multiple grouping statuses like "tendering", "wip", "on hold" etc, you can either have a series of iif statements (20 deep) or create a table to join to as proposed above.

Regards
Random Solutions  
 
programming4us programming4us