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 / May 2005

Tip: Looking for answers? Try searching our database.

Exclude duplicate fields in query results

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Snider - 18 May 2005 17:41 GMT
Hi,

I've been struggling with a query in Access 97 and wonder if someone can
point me in the right direction.

I have a customers table and the fields I need in the query results are
customer name, postal address & email address.  There are a number of records
in the results that have a duplicate email address but the other information
is different (some address are duplicated 12 times or more - i.e. generic
email addresses rather than those to individuals)

What I want to achieve is to include just the first instance of the email
address - doesn't matter which customer name/address it returns - and exclude
the others.  Using "select distinct" won't work as the records are all unique
(it's only email address that's different)

Any guidance would be much appreciated.
Thanks.
Martin J. - 18 May 2005 19:40 GMT
Steve Snider schrieb:
> Hi,
>
[quoted text clipped - 14 lines]
> Any guidance would be much appreciated.
> Thanks.

Hi Steve,

Try to group your query and try to select as a group-function the
"select first" of your E-mail-Adress-Field
 
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.