PC Review


Reply
Thread Tools Rate Thread

changing order in a query

 
 
=?Utf-8?B?R3JhaGFt?=
Guest
Posts: n/a
 
      28th Mar 2007
In the original database all data are numbered in correct order. when I
design a query with the entire range it stays in this order but when i design
a query with some of the data (eg. not data from all days but just data from
day 2 under the column of "day"), some of the data suddenly changes order.
why would this happen???
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmVycnkgV2hpdHRsZQ==?=
Guest
Posts: n/a
 
      28th Mar 2007
Data in tables really don't have an order. It might look like it, but don't
depend on it. If you want to see data in a certain order in a query, select
either Ascending or Descending for the fields in question. You may need to
change the order of the fields in the QBE grid as Access sorts on the
left-most field first that has a sort order selected then moves towards the
right.

To make matter more confusing, Forms will use the sort order of the query
used as the record source; however, Reports do not. If you want to see
records in a certain order in a report, you must use the report's sorting and
grouping options.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Graham" wrote:

> In the original database all data are numbered in correct order. when I
> design a query with the entire range it stays in this order but when i design
> a query with some of the data (eg. not data from all days but just data from
> day 2 under the column of "day"), some of the data suddenly changes order.
> why would this happen???

 
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
How to change series plotting order without changing legend order? PatrickM Microsoft Excel Charting 6 2nd Dec 2009 07:43 PM
Query sort order apparently ignoring ORDER BY john.mctigue@health.wa.gov.au Microsoft Access Queries 4 21st May 2009 02:56 PM
Requery not working after changing ORDER by in query SQL string John F Microsoft Access Queries 3 30th Jan 2009 06:06 AM
Changing the order of fields in a query Keith Microsoft Excel Misc 0 11th Sep 2008 09:18 AM
How stop Excel file UK date order changing to US order in m.merge =?Utf-8?B?Um9nZXIgQWxkcmlkZ2U=?= Microsoft Excel Misc 1 9th Oct 2007 11:52 PM


Features
 

Advertising
 

Newsgroups
 


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