PC Review


Reply
Thread Tools Rate Thread

Contact Record Sort

 
 
Deeds37
Guest
Posts: n/a
 
      1st Mar 2010
I have a database with over 200 records and the primary key is an auto number
for each contact. When the information was exported to the database, it was
exported with last name sort and each individual has a unique auto number.

When I add new contacts to the database, it generates a new auto number
which is fine, but the new contact with last name starting with "A" is the
last record, can the database sort itself with last name before closing?

Deeds37
 
Reply With Quote
 
 
 
 
Steve
Guest
Posts: n/a
 
      1st Mar 2010
New records are always added at the end of the list. Whereever you need to
use the names, use a query based on the table and sort by last name in the
query. Forms and Reports can use a query for their recordsource just as easy
as a table.

Steve
(E-Mail Removed)


"Deeds37" <(E-Mail Removed)> wrote in message
news:6CA5873A-9500-419A-B0DD-(E-Mail Removed)...
>I have a database with over 200 records and the primary key is an auto
>number
> for each contact. When the information was exported to the database, it
> was
> exported with last name sort and each individual has a unique auto number.
>
> When I add new contacts to the database, it generates a new auto number
> which is fine, but the new contact with last name starting with "A" is the
> last record, can the database sort itself with last name before closing?
>
> Deeds37



 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      1st Mar 2010
On Mon, 1 Mar 2010 06:25:01 -0800, Deeds37 <(E-Mail Removed)>
wrote:

>I have a database with over 200 records and the primary key is an auto number
>for each contact. When the information was exported to the database, it was
>exported with last name sort and each individual has a unique auto number.
>
>When I add new contacts to the database, it generates a new auto number
>which is fine, but the new contact with last name starting with "A" is the
>last record, can the database sort itself with last name before closing?
>
>Deeds37


You don't.

A Database in Access is the .mdb or .accdb container file for multiple Tables,
Forms, Reports, queries and code. You're talking about a table within the
database.

Secondly, a Table *has no order*. It should be thought of as a bucket full of
data; there is no "first record" or "next record" concept.

Thirdly, an Autonumber has one purpose and one purpose only: to provide a
meaningless unique identifier for a record. New autonumbers will be assigned
as new records are added; there will often be gaps in the numbering, and it
will certainly not go back and renumber the existing autonumbers when you
insert a new record.


If you want to see records in some particular order (as you certainly will!)
you must - no option - use a Query to sort the records. Don't use table
datasheets for anything other than debugging; normally you will interact with
the data by using a Form based on a Query, sorted in the order you choose. To
print out records, you'll use a Report, and set that report's Sorting and
Grouping dialog to specify the order. The order of records in the table is
uncontrollable, and in essence, irrelevant; you don't need to even know what
that order is, since the other tools - queries and Reports - can control the
order in which the records are displayed.

Here are some resources to help you get started; the tutorials at the end of
the list should give you a good start. Good luck with your database!

Jeff Conrad's resources page:
http://www.accessmvp.com/JConrad/acc...resources.html

The Access Web resources page:
http://www.mvps.org/access/resources/index.html

Roger Carlson's tutorials, samples and tips:
http://www.rogersaccesslibrary.com/

A free tutorial written by Crystal:
http://allenbrowne.com/casu-22.html

A video how-to series by Crystal:
http://www.YouTube.com/user/LearnAccessByCrystal

MVP Allen Browne's tutorials:
http://allenbrowne.com/links.html#Tutorials

--

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
Add a sent contact record gives duplicate contact warning Carol Microsoft Outlook Contacts 0 14th Dec 2009 04:31 PM
How do I sort contact folders =?Utf-8?B?UGF0IFF1aW1ieQ==?= Microsoft Outlook Contacts 3 15th Mar 2006 11:39 PM
Contact sort Laurie Augustinson Microsoft Outlook Contacts 2 19th Feb 2006 03:48 AM
How sort Contacts by 'Hot Contact' category?'Sort ' not work =?Utf-8?B?c3VydmV5ZXI=?= Microsoft Outlook Contacts 1 29th Aug 2005 11:20 AM
Contact - Sort by Catagories Ian Mooney Microsoft Outlook Contacts 4 19th Mar 2004 06:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:00 PM.