mikeytt Posted December 9, 2010 Posted December 9, 2010 Hi, not sure if this is possible but would greatly appreciate any ideas... My records have a TIME field. I want to be able to sort on this field, BUT, want to have a START time which the user can select. This would determine where the Sort would begin from. For exmaple, with the following 5 times: 03:00, 06:00, 09:00, 22:00, 23:00 a standard sort gives: 03:00, 06:00, 09:00, 22:00, 23:00 but if the users decided that the Day Starts at 08:00, then the sort would return: 09:00, 22:00, 23:00, 03:00, 06:00 so it is kind of rolling sort. Any ideas how I can go about this?
comment Posted December 9, 2010 Posted December 9, 2010 Define a calculation field = Mod ( Timefield - gStartTime ; 86400 ) Use this field for sorting. Note that sorts using an unstored calculation will be a tad slower.
mikeytt Posted December 9, 2010 Author Posted December 9, 2010 That's perfect, and so simple! thank you
Recommended Posts
This topic is 5098 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now