Is there a simple way to change the sort order in Access (numeric-alpha)
to alphanumeric? I've searched the help files and some books, but found
no answer.
Thanx for any advice
Chuck 6 2965
Access (like all software products) uses a "collating order" appropriate to
the human language in question. You would seldom need to change that order.
That would be like saying, "English normally sorts a and b to the start of
the alphabet, but I want to change that, & sort them to the end."
What are you trying to achieve?
HTH,
TC
"Chuck M" <b2******@aol.c om> wrote in message
news:b2******** *************** *****@netnews.a ttbi.com... Is there a simple way to change the sort order in Access (numeric-alpha) to alphanumeric? I've searched the help files and some books, but found no answer.
Thanx for any advice
Chuck
In article <1069990952.792 418@teuthos>, "TC" <a@b.c.d> wrote: Access (like all software products) uses a "collating order" appropriate to the human language in question. You would seldom need to change that order. That would be like saying, "English normally sorts a and b to the start of the alphabet, but I want to change that, & sort them to the end."
What are you trying to achieve?
HTH, TC
"Chuck M" <b2******@aol.c om> wrote in message news:b2******** *************** *****@netnews.a ttbi.com... Is there a simple way to change the sort order in Access (numeric-alpha) to alphanumeric? I've searched the help files and some books, but found no answer.
Thanx for any advice
Chuck
Thanx TC - my "challenge" is to sort some coded information so that it
matches the sorting techniques used when the data were hosted on an old
mainframe system. On that system, the sort was alpha then numeric.
Simple sorts in Access and Excel are numeric then alpha.
I can achieve the reordering with queries that change the sort "value"
of each letter and number, but that is cumbersome, as the coded data are
4 to 6 characters long.
Thanx again,
Chuck
Ok, I understand.
There are several ways that you could sort the data into the order you want.
One is by using a query with an ORDER BY part. Say your table has a numeric
field N and a text field T. This would sort the table into "text then
number" order:
SELECT * FROM TheTable ORDER BY T, N;
This would sort it into "number then text" order:
... ORDER BY N, T;
This would sort it by the third character of the text field:
... ORDER BY Mid$ (T, 3)
and many other, similar combinations.
Does that help?
TC
"Chuck M" <b2******@aol.c om> wrote in message
news:b2******** *************** *****@netnews.a ttbi.com... In article <1069990952.792 418@teuthos>, "TC" <a@b.c.d> wrote:
Access (like all software products) uses a "collating order" appropriate
to the human language in question. You would seldom need to change that
order. That would be like saying, "English normally sorts a and b to the start
of the alphabet, but I want to change that, & sort them to the end."
What are you trying to achieve?
HTH, TC
"Chuck M" <b2******@aol.c om> wrote in message news:b2******** *************** *****@netnews.a ttbi.com... Is there a simple way to change the sort order in Access
(numeric-alpha) to alphanumeric? I've searched the help files and some books, but
found no answer.
Thanx for any advice
Chuck
Thanx TC - my "challenge" is to sort some coded information so that it matches the sorting techniques used when the data were hosted on an old mainframe system. On that system, the sort was alpha then numeric. Simple sorts in Access and Excel are numeric then alpha.
I can achieve the reordering with queries that change the sort "value" of each letter and number, but that is cumbersome, as the coded data are 4 to 6 characters long.
Thanx again,
Chuck
That's a similar approach to what I ended up with, thanx. I effectively
broke the 6 character field into 6 separate fields and redefined the
sort order for each of the parts and then sorted by the "new" fields.
I should have given some sample data to clarify:
Field values might be "AAAA ", "AAAA D", "AAA1 ", "AAA1A ".....
Those are in the order needed. Access would place the third and forth
before the first and second.
I appreciate the time you've spent helping, thanx agian
In article <1070072541.549 742@teuthos>, "TC" <a@b.c.d> wrote: Ok, I understand.
There are several ways that you could sort the data into the order you want. One is by using a query with an ORDER BY part. Say your table has a numeric field N and a text field T. This would sort the table into "text then number" order:
SELECT * FROM TheTable ORDER BY T, N;
This would sort it into "number then text" order:
... ORDER BY N, T;
This would sort it by the third character of the text field:
... ORDER BY Mid$ (T, 3)
and many other, similar combinations.
Does that help? TC
"Chuck M" <b2******@aol.c om> wrote in message news:b2******** *************** *****@netnews.a ttbi.com... In article <1069990952.792 418@teuthos>, "TC" <a@b.c.d> wrote:
Access (like all software products) uses a "collating order" appropriate to the human language in question. You would seldom need to change that order. That would be like saying, "English normally sorts a and b to the start of the alphabet, but I want to change that, & sort them to the end."
What are you trying to achieve?
HTH, TC
"Chuck M" <b2******@aol.c om> wrote in message news:b2******** *************** *****@netnews.a ttbi.com... > Is there a simple way to change the sort order in Access (numeric-alpha) > to alphanumeric? I've searched the help files and some books, but found > no answer. > > Thanx for any advice > > Chuck
Thanx TC - my "challenge" is to sort some coded information so that it matches the sorting techniques used when the data were hosted on an old mainframe system. On that system, the sort was alpha then numeric. Simple sorts in Access and Excel are numeric then alpha.
I can achieve the reordering with queries that change the sort "value" of each letter and number, but that is cumbersome, as the coded data are 4 to 6 characters long.
Thanx again,
Chuck
"Chuck M" <b2******@aol.c om> wrote in message
news:b2******** *************** *****@netnews.a ttbi.com... That's a similar approach to what I ended up with, thanx. I effectively broke the 6 character field into 6 separate fields and redefined the sort order for each of the parts and then sorted by the "new" fields.
I should have given some sample data to clarify:
Field values might be "AAAA ", "AAAA D", "AAA1 ", "AAA1A ".....
Those are in the order needed. Access would place the third and forth before the first and second.
I appreciate the time you've spent helping, thanx agian
No problem.
Another approach is to write a public function which accepts a field value
(eg. "AAA1 "), and returns a permuted value which >will< sort properly; say,
"1 AAA". Then, store those permuted values in a new field:
UPDATE MyTable SET NewField = MyFunction (OldField)
Then just ORDER BY on the new field.
HTH,
TC In article <1070072541.549 742@teuthos>, "TC" <a@b.c.d> wrote:
Ok, I understand.
There are several ways that you could sort the data into the order you
want. One is by using a query with an ORDER BY part. Say your table has a
numeric field N and a text field T. This would sort the table into "text then number" order:
SELECT * FROM TheTable ORDER BY T, N;
This would sort it into "number then text" order:
... ORDER BY N, T;
This would sort it by the third character of the text field:
... ORDER BY Mid$ (T, 3)
and many other, similar combinations.
Does that help? TC
"Chuck M" <b2******@aol.c om> wrote in message news:b2******** *************** *****@netnews.a ttbi.com... In article <1069990952.792 418@teuthos>, "TC" <a@b.c.d> wrote:
> Access (like all software products) uses a "collating order"
appropriate to > the human language in question. You would seldom need to change that order. > That would be like saying, "English normally sorts a and b to the
start of > the alphabet, but I want to change that, & sort them to the end." > > What are you trying to achieve? > > HTH, > TC > > > "Chuck M" <b2******@aol.c om> wrote in message > news:b2******** *************** *****@netnews.a ttbi.com... > > Is there a simple way to change the sort order in Access (numeric-alpha) > > to alphanumeric? I've searched the help files and some books, but found > > no answer. > > > > Thanx for any advice > > > > Chuck > >
Thanx TC - my "challenge" is to sort some coded information so that it matches the sorting techniques used when the data were hosted on an
old mainframe system. On that system, the sort was alpha then numeric. Simple sorts in Access and Excel are numeric then alpha.
I can achieve the reordering with queries that change the sort "value" of each letter and number, but that is cumbersome, as the coded data
are 4 to 6 characters long.
Thanx again,
Chuck
In article <1070081478.948 449@teuthos>, "TC" <a@b.c.d> wrote: No problem.
Another approach is to write a public function which accepts a field value (eg. "AAA1 "), and returns a permuted value which >will< sort properly; say, "1 AAA". Then, store those permuted values in a new field:
UPDATE MyTable SET NewField = MyFunction (OldField)
Then just ORDER BY on the new field.
HTH, TC
This is an intersting idea, it may have some application in another
aspect of the database. I'll have to "play" with that on Monday when I
get back to work
Thanx again This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: John Bullock |
last post by:
Hello,
I am at wit's end with an array sorting problem. I have a
simple table-sorting function which must, at times, sort on columns that
include entries with nothing but a space (@nbsp;). I want all of the
spaces to be put in the first slots of the array. IE 6 does this. But
Firefox 0.9.1 doesn't, and I don't know why.
I have not been able to reproduce it in very simple form (which
is itself a puzzle). But example code is...
|
by: mike |
last post by:
If I had a date in the format "01-Jan-05" it does not sort properly
with my sort routine:
function compareDate(a,b)
{
var date_a = new Date(a);
var date_b = new Date(b);
if (date_a < date_b)
{ return -1; }
else
|
by: Karin Jensen |
last post by:
Hi
I am running a PHP program that connects to an Access 2000 database
via ODBC:
$results = odbc_exec($connection_id, $sql_select);
Is it possible to sort the contents of $results? I wish to use a
regex-based sort order that you can't do in Access 2000* SQL with
"ORDER BY".
|
by: SilverWolf |
last post by:
I need some help with sorting and shuffling array of strings. I can't
seem to get qsort working, and I don't even know how to start to shuffle
the array. Here is what I have for now:
#include <stdio.h>
void main(void)
{
char lines;
int count = 0, i;
|
by: aredo3604gif |
last post by:
On Sun, 10 Apr 2005 19:46:32 GMT, aredo3604gif@yahoo.com wrote:
>The user can dynamically enter and change the rule connection between
>objects. The rule is a "<" and so given two objects:
>a < b simply means that b < a can't be set, also it must be a != b.
>And with three objects a < b , b < c means a < c
>
>I studied Quick Union Find algorithms a bit and if I understood them
>correctly, once the user gives the input setting the...
| |
by: Owen T. Soroke |
last post by:
Using VB.NET
I have a ListView with several columns.
Two columns contain integer values, while the remaining contain string
values.
I am confused as to how I would provide functionality to sort columns
based on the column header the user has clicked in both Ascending and
Descending formats.
|
by: FBM |
last post by:
Hi,
I am working on a program that simulates one of the elements of ATM.
The simulation stores events which occurs every some milliseconds for a
certain amount of time. Every time that an event is stored in a double
linked list, the whole list is sorted for the next round.
My problem appears when subjecting the program to heavy load, that is,
when I run the simulation for more than 10,000 miliseconds (every event
occurs in...
|
by: Sjaakie |
last post by:
Hi,
I'm, what it turns out to be, fooling around with 3-tier design.
At several websites people get really enthusiastic about using custom
dataobjects instead of datasets/-tables.
While trying to write such layers myself I got stuck on how to get
filtered or sorted data from the data-layer.
This is what I got:
Objects
|
by: =?Utf-8?B?R2VyaGFyZA==?= |
last post by:
I have a vb.net 2.0 app that is loading a GridView with a DataSource that is
returned from a function.
The definitions in the function are:
Dim ReportDS As DataSet = New DataSet
Dim ReportTable As System.Data.DataTable = New
System.Data.DataTable("SendTo")
The ReportTable is populated row by row by data gotten back from the
|
by: =?Utf-8?B?RGFu?= |
last post by:
I am reposting a question from about 3 weeks ago ("sorting capability").
I have an aspx page in which I get the data from a database dynamically,
through C# code, by creating a dynamic table using TableHeaderCell and
TableHeaderRow.
The data is binded to the table by using a DataSet and Data Reader.
The responses on the forum made me think that it would be easier to sort the
data in the table (when clicking on the header column), by...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |