Re: Sorting Question
- From: Chuck <libbeyc@xxxxxxxxxxxxxx>
- Date: Sun, 24 Jun 2007 23:00:00 -0400
On Sun, 24 Jun 2007 09:04:06 -0400, Tom <tom@xxxxxxxx> wrote:
Am running an Access 2K database in Access 2003. Have not converted it yet
and cannot for awhile until entire sales force has the new Laptops running
Access 2003.
My application deals with some 24,000+ part numbers that sometimes need to
be sorted in our part number sequence in Reports. Our part numbers involve
both numeric only number consisting of string lengths from 4 to 8 AND part
number that begin with Alpha characters (1 or 2 or 3 Alphas) then numeric
numbers with string lengths of 3 to 8. Some of these numbers have a hyphen
in them that skew the actual string length for sorting based on length. We
publish our price lists and put our products on the shelf based on the
length of the part number (up to the hyphen), then the sort.
I am looking for a way to sort our numeric numbers based on length and then
sort our Alpha/numeric parts up the hyphen in the part number when the
Report is printed.
If someone could point me in correct direction, it would be much
appreciated!
TIA!
This is not an Access or VB problem per se.
This is a logic problem. First solve the logic of what you are trying to do.
Express the logic in a series of plain english statements (or what ever your
first language is), or a series of algebraic equations.
The logic does not change from one program to another, only the syntax the
program requires varies - in this case you need the syntax Access requires.
Example: In VB you might have if ... then ... else ...
In Access you would have iif ... then ... else ...
In Excel you would have if(... , ... , ...)
The syntax is different but the results are the same.
Chuck --
.
- Follow-Ups:
- Re: Sorting Question
- From: Tom
- Re: Sorting Question
- References:
- Sorting Question
- From: Tom
- Sorting Question
- Prev by Date: acViewPreview not working
- Next by Date: Re: Hide text box and lables in reports with no data
- Previous by thread: Re: Sorting Question
- Next by thread: Re: Sorting Question
- Index(es):
Relevant Pages
|