Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / November 2007

Tip: Looking for answers? Try searching our database.

Question on Sorting within a query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rich - 01 Nov 2007 15:10 GMT
Hello,

I have 1 query which is the basis for a datasheet and a report.  It seems
that no matter what I specify in the ORDER BY clause, the sort order differs
in the report and datasheet.  Same thing results if I ORDER BY more than 1
column.  It also seems that if I specify sorting by more than 1 column in
design view, sorting only occurs on the first column.  When I switch to SQL
view, both columns do show up in the ORDER BY clause, but still only 1 column
is sorting.

Is there a bug of some sort that pops up when sorting query results?

TIA,
Rich
Roger Carlson - 01 Nov 2007 15:19 GMT
A report completely ignores the OrderBy clause of the source query.  You'll
have to set the order in the Sorting and Grouping dialog box in the report.

Signature

--Roger Carlson
 MS Access MVP
 Access Database Samples: www.rogersaccesslibrary.com
 Want answers to your Access questions in your Email?
 Free subscription:
 http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L

> Hello,
>
[quoted text clipped - 13 lines]
> TIA,
> Rich
rich - 01 Nov 2007 15:45 GMT
Thanks Roger.

I found it in the Report properties on the Data tab.

> A report completely ignores the OrderBy clause of the source query.  You'll
> have to set the order in the Sorting and Grouping dialog box in the report.
[quoted text clipped - 16 lines]
> > TIA,
> > Rich
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.