Re: Sorting Problem in Report
- From: John Spencer <spencer@xxxxxxxxx>
- Date: Wed, 14 May 2008 10:22:00 -0400
That is a proper sort for a text field that is storing number characters.
Try changing the sort to
= Val([DistrictField])
Val will convert the number string to a number.
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
phnomda wrote:
On May 13, 4:54 pm, Jerry Whittle.
<JerryWhit...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Where are you doing the sorting? How it's in the table or even a query
doesn't matter. You must set the sort order in the report.
Would it happen to be numerical characters stored in a text field? That can
cause problems like so:
111
22
222
33
That's because text is sorted from left to right.
Leading spaces can also cause problem.
Maybe you could show examples of the problem.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
"phnomda" wrote:I'm having a problem that seems like it should be easy to fix... and- Show quoted text -
yet I can't seem to fix it. I would like in a report to group by one
of the fields in a table, and would like the grouping to be in
ascending order. The report is grouping by the field, but it is all
out of order. No matter what I do, it retains the same, wrong, non-
ascending order. The table is in ascending order, and the field on the
report is set to ascending order. Any idea why, with so much ascending
order, it is still coming up out of order? Any help would be greatly
appreciated!- Hide quoted text -
There are numbers involved-- it's a sorting of districts, which are
assigned numerical values. So the order that comes up is:
10
11
12
13
..etc
1
22
23
2
How do I get around this? Any help would be appreciated!
Thanks!
- Follow-Ups:
- Re: Sorting Problem in Report
- From: phnomda
- Re: Sorting Problem in Report
- References:
- Sorting Problem in Report
- From: phnomda
- RE: Sorting Problem in Report
- From: Jerry Whittle
- Re: Sorting Problem in Report
- From: phnomda
- Sorting Problem in Report
- Prev by Date: RE: Going to the Next Line
- Next by Date: Re: can't delete ldb file
- Previous by thread: Re: Sorting Problem in Report
- Next by thread: Re: Sorting Problem in Report
- Index(es):
Relevant Pages
|