Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 19th, 2005, 01:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: abu dbabi, , United Arab Emirates.
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default distinct clause in report

how can use distinct cluase in Access Report Query ?
I use distinct cluase in the query but it ask vdate,
I want that it not ask vdata just display result
with distinct vdate how?


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


regards.

Mateen



Reply With Quote
  #2 (permalink)  
Old February 19th, 2005, 10:28 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Hi Mateen,

DISTINCT is a SQL keyword that would be used like:

SELECT DISTINCT [dbo_pvideo].[vdate], [dbo_pvideo].[userid], etc., etc..

though I doubt that will get you the results you're looking for (though I'm not really clear on what results you're looking for).

It appears that what you may want to do is GROUP BY the date in the report. But again, not sure...

Bob

Reply With Quote
  #3 (permalink)  
Old February 21st, 2005, 06:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: abu dbabi, , United Arab Emirates.
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks.

it is ok.

regards.

Mateen


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Distinct Smeghead SQL Server 2005 9 December 17th, 2007 11:10 AM
Distinct Eddywardo SQL Server 2005 1 September 2nd, 2006 07:41 AM
DISTINCT trouble HockeyFan Classic ASP Databases 1 March 7th, 2006 01:07 PM
Distinct SELECT DISTINCT question... EndEffect Classic ASP Databases 4 August 18th, 2005 08:53 AM
How to simulate DISTINCT clause in SQL SERVER debsoft SQL Server 2000 6 June 30th, 2003 06:29 PM



All times are GMT -4. The time now is 08:26 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.