Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
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 August 29th, 2006, 08:53 AM
Registered User
Join Date: May 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default question about distictrow KEY word

I have a table called tblTreatmentsComparison:


[u]ID Treatment_ID_1 Treatment_ID_2 Outcome ID</u>
3 Adalimumab 20mg Adalimumab 40mg Zspare1
3 Adalimumab 20mg Adalimumab 40mg Zspare1
10 Iglish 10mg Iglish 10mg Zspare2
10 Iglish 10mg Iglish 10mg Zspare2

I use the following sql statement to retrieve all the unique row from tblTreatmentsComparison.

select distinctrow * from tblTreatmentsComparison

But it seems not ok. Anyidea? Thank you

Old August 29th, 2006, 10:54 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts


   Try getting the query working in the designer, and then switch to SQL view and copy the code. I think you will find ANSI 89 at least uses "SELECT DISTINCT..."



Similar Threads
Thread Thread Starter Forum Replies Last Post
KEY QUESTION cleytonjordan XSLT 2 August 2nd, 2005 06:36 PM
Returning values using a key word sql statement CHen Access 0 February 6th, 2005 07:05 AM
Composite key question hlchuah77 SQL Server 2000 3 October 19th, 2004 05:24 AM
How do I disable a key in vba for word? nesplb VB How-To 1 August 3rd, 2003 08:19 AM
How do I disable a key in vba in word? nesplb Pro VB 6 0 August 1st, 2003 01:44 AM

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