S
Strike Eagle
I have a simple query where I want to sort the records based upon one fields
data and not ascending or descending.
My SQL is:
SELECT [Flight Roster].Rank, [Flight Roster].[Last Name], [Flight
Roster].Shift, [Flight Roster].AFSC
FROM [Flight Roster]
WHERE ((([Flight Roster].Status)="1")) OR ((([Flight
Roster].Status)="Orders") AND (([Flight Roster].[Last Duty Day])>Now()))
ORDER BY [Flight Roster].Shift, [Flight Roster].AFSC;
I first want to order it by [Flight Roster].Shift by ascending and then by
[Flight Roster].AFSC but in a specific order based upon data stored within
AFSC.
I want records with 2A371 ordered first, then 2A351A, then 2A331A, then
2A351B, then 2A331B, then 2A656, then 2A671A.
For example for all shift 1, I want the AFSC's in the order I want, then for
Shift 2, I also want AFSC's in the same order but all after shift 1.
Is this even possible?
If you need more clarification, please ask.
Thanks for all you help
Dan
data and not ascending or descending.
My SQL is:
SELECT [Flight Roster].Rank, [Flight Roster].[Last Name], [Flight
Roster].Shift, [Flight Roster].AFSC
FROM [Flight Roster]
WHERE ((([Flight Roster].Status)="1")) OR ((([Flight
Roster].Status)="Orders") AND (([Flight Roster].[Last Duty Day])>Now()))
ORDER BY [Flight Roster].Shift, [Flight Roster].AFSC;
I first want to order it by [Flight Roster].Shift by ascending and then by
[Flight Roster].AFSC but in a specific order based upon data stored within
AFSC.
I want records with 2A371 ordered first, then 2A351A, then 2A331A, then
2A351B, then 2A331B, then 2A656, then 2A671A.
For example for all shift 1, I want the AFSC's in the order I want, then for
Shift 2, I also want AFSC's in the same order but all after shift 1.
Is this even possible?
If you need more clarification, please ask.
Thanks for all you help
Dan