Hello,
In the Query for the report i have the following columns:
ID_User | Time_In | Time_Out | Time_Total
> The Time_In and Time_Out columns are formatted as General Date
> The Time_TOTAL column is not a value that is stored in a table. It is only used in the query. The code I use to calculate the Time_TOTAL is as follow:
TotalTime: Int([TimeOut]-[TimeIn]) & " day " & Format([Time_Out]-[Time_In],"h"" hr ""n"" min ""s"" sec""")
No problems so far...
So, in the Report's Detail section it displays the columns for :
ID_User, Time_In, Time_Out and Time_Total
Now, to get the GRAND TOTAL TIME, in the ID_User FOOTER, i have a textbox name txtGT_Time with the same code as the Time_Total column, ie:
=Int(Sum([TimeOut]-[TimeIn])) & " day " & Format(Sum([Timeout]-[TimeIn]),"h"" hr ""n"" min ""s"" sec""")
The report generates correctly and shows the TotalTime for each user.
What I'm trying to do is to SORT the report BY FOOTER, having the user with the most TotalTime at the top, or, the way I see it, is that I want to sort the report by >>> SortBy(or OrderBy) the textbox named "txtGT_TIME" which is in a Footer.
Any help appreciated.
Thank you.
Jamie.
In the Query for the report i have the following columns:
ID_User | Time_In | Time_Out | Time_Total
> The Time_In and Time_Out columns are formatted as General Date
> The Time_TOTAL column is not a value that is stored in a table. It is only used in the query. The code I use to calculate the Time_TOTAL is as follow:
TotalTime: Int([TimeOut]-[TimeIn]) & " day " & Format([Time_Out]-[Time_In],"h"" hr ""n"" min ""s"" sec""")
No problems so far...
So, in the Report's Detail section it displays the columns for :
ID_User, Time_In, Time_Out and Time_Total
Now, to get the GRAND TOTAL TIME, in the ID_User FOOTER, i have a textbox name txtGT_Time with the same code as the Time_Total column, ie:
=Int(Sum([TimeOut]-[TimeIn])) & " day " & Format(Sum([Timeout]-[TimeIn]),"h"" hr ""n"" min ""s"" sec""")
The report generates correctly and shows the TotalTime for each user.
What I'm trying to do is to SORT the report BY FOOTER, having the user with the most TotalTime at the top, or, the way I see it, is that I want to sort the report by >>> SortBy(or OrderBy) the textbox named "txtGT_TIME" which is in a Footer.
Any help appreciated.
Thank you.
Jamie.