A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

automatically sort table entries



 
 
Thread Tools Display Modes
  #1  
Old August 30th, 2004, 03:25 PM
fvela
external usenet poster
 
Posts: n/a
Default automatically sort table entries

i have my tables sorted alphabetically, but when i add a new record i have to
go and reapply the sort again manually...
i want to have the sort apply automatically every time i add an entry (ie.
the entry should "find its spot" alphabetically in the entries of the
table)...
can anyone help me?

thanx

  #2  
Old August 30th, 2004, 04:01 PM
'69 Camaro
external usenet poster
 
Posts: n/a
Default

A table is a collection of records. The database retrieves those records in
no particular order, unless you use SQL commands to do so with a query.
"Sorting" the table column display will only work for the current data set.
As soon as another entry is added, you will need to manually resort the data
set. Essentially, you have been "pushing on a string."

Instead, create a query that sorts the entries on the field or fields that
you want alphabetized. You can create a bound form that uses this query as
its RecordSource. As soon as you add an entry, you can set the form so that
it will "requery" the database and retrieve the records in the order that
you set when you designed your query. Using a form bound to a query instead
of a table for the data input provides event procedures to help control the
data input and provides data validation, so you receive added benefits as
well.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Any human can read my reply E-mail address and should alter it so that a
message will be forwarded to me. Spammers are free to use my UNALTERED
reply E-mail address. I will *never* get those messages!)


"fvela" wrote in message
...
i have my tables sorted alphabetically, but when i add a new record i have

to
go and reapply the sort again manually...
i want to have the sort apply automatically every time i add an entry (ie.
the entry should "find its spot" alphabetically in the entries of the
table)...
can anyone help me?

thanx



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort Order in Pivot Table Geoffrey Zhu General Discussion 2 August 26th, 2004 04:13 AM
Semicolon delimited text query help Al Guerra Running & Setting Up Queries 3 August 12th, 2004 11:50 AM
Sort and sum data in a table TimW General Discussion 6 August 7th, 2004 11:30 PM
COMPARE THE TWO TABLES Stefanie General Discussion 0 June 4th, 2004 04:36 PM
Lookup fields - what's wrong with them? NATHAN SANDERS New Users 2 May 4th, 2004 10:51 AM


All times are GMT +1. The time now is 08:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.