T
Tony
Hi Group,
I am having big problems with this query and would
apprecaite some expert help as I have spent 4 hours trying
to get my head round it. I am trying to devise a query
that removes the following criteria...
Programme = 003
Priority = 001
Measure = 001, 002, 003, 004, 005, 006, 007
Programme = 003
Priority = 002
Measure = 001, 002, 003, 004
Programme = 003
Priority = 003
Measure = 001
Programme = 003
Priority = 004
Measure = 001
Here is the WHERE clasue of my SQL so far but it doesn't
seem to be working. Where am I going wrong?
WHERE (((qryStatsMaster.ApplicationStatus)="LOOAccepted"
Or (qryStatsMaster.ApplicationStatus)="Completed") AND
((([qryStatsMaster].[Programme]="003" And
[qryStatsMaster].[Priority]="001" And
[qryStatsMaster].[Measure]="001" And "002" And "003"
And "004" And "005" And "006" And "007")
Or ([qryStatsMaster].[Programme]="003" And
[qryStatsMaster].[Priority]="002" And
[qryStatsMaster].[Measure]="001" And "002" And "003"
And "004")
Or ([qryStatsMaster].[Programme]="003" And
[qryStatsMaster].[Priority]="003" And
[qryStatsMaster].[Measure]="001")
Or ([qryStatsMaster].[Programme]="003"
And [qryStatsMaster].[Priority]="004" And
[qryStatsMaster].[Measure]="001"))=False))
ORDER BY qryStatsMaster.Priority, qryStatsMaster.Measure;
Many thanks
Tony
I am having big problems with this query and would
apprecaite some expert help as I have spent 4 hours trying
to get my head round it. I am trying to devise a query
that removes the following criteria...
Programme = 003
Priority = 001
Measure = 001, 002, 003, 004, 005, 006, 007
Programme = 003
Priority = 002
Measure = 001, 002, 003, 004
Programme = 003
Priority = 003
Measure = 001
Programme = 003
Priority = 004
Measure = 001
Here is the WHERE clasue of my SQL so far but it doesn't
seem to be working. Where am I going wrong?
WHERE (((qryStatsMaster.ApplicationStatus)="LOOAccepted"
Or (qryStatsMaster.ApplicationStatus)="Completed") AND
((([qryStatsMaster].[Programme]="003" And
[qryStatsMaster].[Priority]="001" And
[qryStatsMaster].[Measure]="001" And "002" And "003"
And "004" And "005" And "006" And "007")
Or ([qryStatsMaster].[Programme]="003" And
[qryStatsMaster].[Priority]="002" And
[qryStatsMaster].[Measure]="001" And "002" And "003"
And "004")
Or ([qryStatsMaster].[Programme]="003" And
[qryStatsMaster].[Priority]="003" And
[qryStatsMaster].[Measure]="001")
Or ([qryStatsMaster].[Programme]="003"
And [qryStatsMaster].[Priority]="004" And
[qryStatsMaster].[Measure]="001"))=False))
ORDER BY qryStatsMaster.Priority, qryStatsMaster.Measure;
Many thanks
Tony