Re: Sorting Dates
- From: fredg <fgutkind@xxxxxxxxxxxxxxx>
- Date: Fri, 18 Apr 2008 10:57:36 -0700
On Fri, 18 Apr 2008 10:25:00 -0700, Melinda wrote:
I have looked through all the postings, but don't see one that quite fits
what I am doing, and have failed at all the attempts I have made. I am
sorting Seniority Dates in a total overtime report. When 3 employees have
the same year to date total hours of overtime, I need it to then sort by
seniority, with the most senior person being called in to work first. I
have three employees with 16.4 hours of overtime, and their seniority dates
are 05-13-2000, 06-14-1990, and 06-28-1986. I see that it is sorting on the
month and then the date, but I need the most senior person being listed
first. How do I change my sort?
What is the actual datatype of the Seniority Date field?
Is it Text datatype or is it Date datatype.?
Where are you doing the sorting? In the query or in the Report?
1) The Seniority Date field should be Date datatype (I suspect yours
is Text).
2) Any sorting you do in the query is irrelevant to the sorting in the
report.
To sort the report, use the Report's Sorting and Grouping dialog...
Click on View + Sorting and Grouping.
If the [SeniorityDate] is actually a Date datatype .....
In the Field/Expression column write:
[SeniorityDate]
on the top line.
In the Sort column write
Ascending
If the [SeniorityDate] is actually a Text datatype .....
In the Field/Expression column write:
=CDate([SeniorityDate])
on the top line
In the Sort Column, write
Ascending
The report should now sort according to Seniority.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
.
- Follow-Ups:
- Re: Sorting Dates
- From: Melinda
- Re: Sorting Dates
- References:
- Sorting Dates
- From: Melinda
- Sorting Dates
- Prev by Date: RE: Do Access Reports recalculate their record source?
- Next by Date: Report or Query to show First & Last Date Item is rented
- Previous by thread: Sorting Dates
- Next by thread: Re: Sorting Dates
- Index(es):
Relevant Pages
|