PC Review


Reply
Thread Tools Rate Thread

How do I change the sort order in access to the order I put it in

 
 
=?Utf-8?B?TmVlZGhlbHA=?=
Guest
Posts: n/a
 
      4th Oct 2006
I created an Access database and started entering in data into a form. I
wanted to keep it in the order I put it in, but Access automatically sorted
it. Is there anyway I can get it back to the order I put it in?
 
Reply With Quote
 
 
 
 
Mike Labosh
Guest
Posts: n/a
 
      4th Oct 2006
>I created an Access database and started entering in data into a form. I
> wanted to keep it in the order I put it in, but Access automatically
> sorted
> it. Is there anyway I can get it back to the order I put it in?


You can only do that if you originally built the table with an AutoNumber
column, or a DateTime column whose Default Value is Now().

If you did, then you can set the Record Source property of your form to a
SQL statement like this:

SELECT * FROM WhateverTableName ORDER BY WhateverColumnName

Otherwise, you will have to add a Number column to your table, enter numbers
starting from 1, to mark the records in entry order, and then change it to
an AutoNumber, (if Access will even let you do that) and then see above.
--


Peace & happy computing,

Mike Labosh, MCSD MCT
Owner, vbSensei.Com

"Veritas e aequitas; in nominae Patri, et Fili, et Spiritus Sancti."
-- The Boondock Saints


 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      4th Oct 2006
On Tue, 3 Oct 2006 17:41:02 -0700, Needhelp
<(E-Mail Removed)> wrote:

>I created an Access database and started entering in data into a form. I
>wanted to keep it in the order I put it in, but Access automatically sorted
>it. Is there anyway I can get it back to the order I put it in?


A table has no meaningful order. It's best viewed as an unordered
"heap" of records. It will (generally, no guarantee) be displayed in
the order of its Primary Key field if it has one; but as a rule, if
you want to see the records in some particular order, you must create
a Query based on your table and specify the sort order there.

To retain the order in which records are entered, you must - as
suggested elsethread - put a field in the table to specify that order,
either an Autonumber or a date/time stamp defaulting to Now(). If you
already have records and do not have such a field, there's no way I
can think of for Access to "remember" what order they were entered.

John W. Vinson[MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query sort order apparently ignoring ORDER BY john.mctigue@health.wa.gov.au Microsoft Access Queries 4 21st May 2009 02:56 PM
Why does the sort order change... =?Utf-8?B?U2hlaWxhIEQ=?= Microsoft Access 1 12th Jul 2006 11:52 AM
Why does my file change sort order after importing to Access 97? =?Utf-8?B?R2lubnk=?= Microsoft Access 3 3rd Mar 2006 07:11 PM
How to change report sort order at run-time in access 2002 =?Utf-8?B?U2lmb3I=?= Microsoft Access VBA Modules 2 11th Jan 2005 04:51 PM
Access/sort order OR record order or not sure Terri Microsoft Access 3 10th Jul 2003 06:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:35 PM.