Hi Team,
In need of your expertise....
I have a query that I'm running against a access 97 database.
code
SELECT mergeddatabase.Roomno, Count(*) AS Boxesscanned, Sum(mergeddatabase.Currentweight) AS RoomsTotalweight, mergeddatabase.Currentdate AS RequestedDate
FROM mergeddatabase WHERE (((mergeddatabase.Currentdate) Between [Forms]![FrmDateRange]![TxtStartDate] And [Forms]![FrmDateRange]![TxtEndDate]))
GROUP BY mergeddatabase.Roomno, mergeddatabase.Currentdate;/code
It is currently grouping the output by the RoomNo & CurrentDate. The resulting output is correct but I need to change the order it comes out as.
We have 12 growing sheds which are grouped in 3's. Meaning Sheds 1,5,6 are one group, 2,9,10 are another etc..
This query currently displays the output as:-
RoomNo1 nnnnnnn yyyyyy
RoomNo2 nnnnnnn YYYYYY
RoomNo3 nnnnnnn YYYYYY etc..
I need:-
RoomNo1 nnnnnnn yyyyyy
RoomNo5 nnnnnnn YYYYYY
RoomNo6 nnnnnnn YYYYYY
I do not want a prompt to enter the room numbers as I want it hardcoded in the query.
Look forward to your help.