1.
SELECT [TTT - Temp File with Buy as Ord].*, IIf((Int([TTT - Temp File with Buy as Ord]![CreateSOQTY3]/6)*6)<[TTT - Temp File with Buy as Ord]![CreateSOQTY3],(Int([TTT - Temp File with Buy as Ord]![CreateSOQTY3]/6)+1)*6,Int([TTT - Temp File with Buy as Ord]![CreateSOQTY3]/6)*6) AS Rounding
FROM [TTT - Temp File with Buy as Ord]
ORDER BY [TTT - Temp File with Buy as Ord].CreateSOQTY3 DESC , IIf([DRPQty]>0,0,1), [TTT - Temp File with Buy as Ord].NOTE, [TTT - Temp File with Buy as Ord].ClientSoQty DESC , [TTT - Temp File with Buy as Ord].Request_Qty DESC , [TTT - Temp File with Buy as Ord].DRPQty DESC , IIf(([TTT - Temp File with Buy as Ord]![ClientSoQty]-[TTT - Temp File with Buy as Ord]![OH_Qty]-[TTT - Temp File with Buy as Ord]![InTransitQty]-[TTT - Temp File with Buy as Ord]![OpenSOQty])<0,0,[TTT - Temp File with Buy as Ord]![ClientSoQty]-[TTT - Temp File with Buy as Ord]![OH_Qty]-[TTT - Temp File with Buy as Ord]![InTransitQty]-[TTT - Temp File with Buy as Ord]![OpenSOQty]) DESC;
2.
There are linked tables in the database but the table it is taking data from is not linked it is an "internal" table.
3.
All the fields are number (double) except Item, ItemDescrip,
Trend Type, TrendDescrip, OBSOLETE, Phase or Spare, Sub Part (Y/N), Substitute Part, NOTE Which are all text fields.
I should also add that it is working in Access 2003.
I appreciate your help