WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Is it possible to sort on more than 3 fields?

 
Goto page Previous  1, 2
   Home -> Office other -> Reports RSS
Next:  Report Margins  
Author Message
Jane Schuster

External


Since: Jun 23, 2008
Posts: 18



(Msg. 9) Posted: Fri Sep 05, 2008 8:02 am
Post subject: Re: Is it possible to sort on more than 3 fields? [Login to view extended thread Info.]
Archived from groups: microsoft>public>access>reports (more info?)

The ContactDate is a Date/Time field, what I'm getting appears to be random,
sometimes it's right, other times it's not. There doesn't appear to be any
logic in the way it is sorting.

"Rick Brandt" wrote:

> Jane Schuster wrote:
> > Sorry. I didn't mean to be cryptic. Let's say, I have the following:
> >
> > Business: ABC Machines
> > LastName: Smith
> > FirstName: Bob
> > ContactDate: 01/01/2008
> > ContactDate:02/01/2008
> > ContactDate: 03/01/2008
> > Business: BCD Machines
> > LastNate: Smith
> > FirstName: Bob
> > ContactDate: 01/01/2008
> > ContactDate: 02/01/2008
> > ContactDate: 03/01/2008
> >
> > That's how I want the report to print (well, I want it to print in
> > descending order by ContactDate, but it isn't doing that either,
> > although that's what I specified on the Sorting and Grouping Screen).
> > I've got the first sort on Business, the second on LastName, the
> > third on FirstName, and the fourth on ContactDate.
>
> You haven't indicated the sort that you ARE getting. Almost certainly your
> dates are being sorted as text because you have an expression that is
> converting them from dates to strings.
>
> If the data in a field looks like a date there are really only two possible
> ways for the sort to be applied, chronological, or alphabetical. If you are
> getting the latter then you have to find out where your dates are being
> changed into strings. Use of the Format() function is the most common
> reason.
>
> --
> Rick Brandt, Microsoft Access MVP
> Email (as appropriate) to...
> RBrandt at Hunter dot com
>
>
>
Back to top
Login to vote
Jeff Boyce

External


Since: Nov 04, 2004
Posts: 3937



(Msg. 10) Posted: Fri Sep 05, 2008 8:28 am
Post subject: Re: Is it possible to sort on more than 3 fields? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jane

You aren't perceiving any pattern ... but we still don't have an example of
how it is sorting, so we can't offer our ideas about what might be
happening.


Regards

Jeff Boyce
Microsoft Office/Access MVP

"Jane Schuster" <JaneSchuster.RemoveThis@discussions.microsoft.com> wrote in message
news:C345DE10-F2FC-42B5-86B2-2E8708C324FA@microsoft.com...
> The ContactDate is a Date/Time field, what I'm getting appears to be
> random,
> sometimes it's right, other times it's not. There doesn't appear to be
> any
> logic in the way it is sorting.
>
> "Rick Brandt" wrote:
>
>> Jane Schuster wrote:
>> > Sorry. I didn't mean to be cryptic. Let's say, I have the following:
>> >
>> > Business: ABC Machines
>> > LastName: Smith
>> > FirstName: Bob
>> > ContactDate: 01/01/2008
>> > ContactDate:02/01/2008
>> > ContactDate: 03/01/2008
>> > Business: BCD Machines
>> > LastNate: Smith
>> > FirstName: Bob
>> > ContactDate: 01/01/2008
>> > ContactDate: 02/01/2008
>> > ContactDate: 03/01/2008
>> >
>> > That's how I want the report to print (well, I want it to print in
>> > descending order by ContactDate, but it isn't doing that either,
>> > although that's what I specified on the Sorting and Grouping Screen).
>> > I've got the first sort on Business, the second on LastName, the
>> > third on FirstName, and the fourth on ContactDate.
>>
>> You haven't indicated the sort that you ARE getting. Almost certainly
>> your
>> dates are being sorted as text because you have an expression that is
>> converting them from dates to strings.
>>
>> If the data in a field looks like a date there are really only two
>> possible
>> ways for the sort to be applied, chronological, or alphabetical. If you
>> are
>> getting the latter then you have to find out where your dates are being
>> changed into strings. Use of the Format() function is the most common
>> reason.
>>
>> --
>> Rick Brandt, Microsoft Access MVP
>> Email (as appropriate) to...
>> RBrandt at Hunter dot com
>>
>>
>>
Back to top
Login to vote
Rick Brandt

External


Since: Sep 30, 2003
Posts: 5041



(Msg. 11) Posted: Fri Sep 05, 2008 1:05 pm
Post subject: Re: Is it possible to sort on more than 3 fields? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jane Schuster wrote:
> The ContactDate is a Date/Time field,

The point that we might not be making clearly enough is that the fact that
is starts out at its source table as a DateTime field does not mean that it
is still a DateTime value by the time it gets to your report for sorting.

There are any number of things in between that might be changing it into a
string and thus your report will sort it as a string.

>what I'm getting appears to be
> random, sometimes it's right, other times it's not. There doesn't
> appear to be any logic in the way it is sorting.

Please show an exact example of the incorrect sorting you are seeing.


--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Reports All times are: Eastern Time (US & Canada) (change)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET