Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 5th, 2005, 07:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default Order by in Report

I use following query in Access report.
when I run this query it return right order by as I want.
ie
ORDER BY [dbo_pvideo].[userid], [dbo_pvideo].[vdate] DESC;

but when I use same this query in Access Report
it order by vdate desc not work
it display vdate asc order why ?

I want to order by userid, and vdate should be DESC order how ?



SELECT [dbo_pvideo].[userid], [dbo_pvideo].[vdate], [dbo_pvideo].[video1], [dbo_pvideo].[video2],
FROM dbo_pvideo
WHERE ((([dbo_pvideo].[video1]) Is Not Null))
ORDER BY [dbo_pvideo].[userid], [dbo_pvideo].[vdate] DESC;

what changing in access report ?
regards.

Mateen


 
Old February 5th, 2005, 02:20 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Mateen

Find Sorting and Groupin tool in Formatting toolbar
Set Field/Expression userid Sort Order Ascending and vdate Descending

-vemaju

 
Old February 6th, 2005, 10:10 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Vemaju,

Thanks.








Similar Threads
Thread Thread Starter Forum Replies Last Post
ORDER BY Help U.N.C.L.E. SQL Server 2000 13 September 2nd, 2008 09:07 PM
Order by In Report mateenmohd Access 3 December 6th, 2006 08:17 AM
Stacking order keithc BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 February 26th, 2006 01:08 PM
Order by clause mateenmohd SQL Server 2000 4 April 6th, 2004 06:48 AM
document node order vs sort node order. ladyslipper98201 XSLT 2 June 5th, 2003 11:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.