Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting by Date and Time

Status
Not open for further replies.

PBS2

Programmer
May 17, 2004
43
GB
I have a requirement to sort my report by Date and Time. My data has separate fields for date and time. I have figured out that if I Group Sort on the Maximum of the Date field the report displays in Date order. However, how I can sort on Time within Date ?
 
Not sure I understand. It sounds like you are not grouping on these date and time fields, so could you provide a little more detail on what your groups and detail looks like?

It sounds to me like a simple record sort would work just fine. Have you tried using that?
 
Check Report > Sort Expert - or whatever it is on your version of Crystal. You can sort on the basis of individual record fields, including time within date.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Try creating a formula:

datetime({table.date},{table.time})

Then use this formula for your sort. (Remove the topN sort first).

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top