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.

Select data once in a query even if there is more of the same kind

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Poul Erik Jacobsen - 23 May 2005 10:21 GMT
I have a table containing following fields:
Brand name, Manufactor, Contact name, contact mail, and Phone
The Brand  name is unique. But the manufactor might have several brand names.
I want to create a query that shows a list of the manufactors, but they must
only be shown once.
Can anybody help me with this, please.
Thanks in advance
Nikos Yannacopoulos - 23 May 2005 13:16 GMT
Poul,

Start making a new query in design view, add no table, then revert to
SQL view and paste the following expression:

SELECT DISTINCT Manufactor FROM MyTable

replacing MyTable with the actual table name. This should do the job.

HTH,
Nikos

> I have a table containing following fields:
> Brand name, Manufactor, Contact name, contact mail, and Phone
[quoted text clipped - 3 lines]
> Can anybody help me with this, please.
> Thanks in advance
David Lloyd - 23 May 2005 13:18 GMT
One approach would be to create a separate table for Manufacturers.  You
could then assign a ManufacturersID number to each manufacturer and replace
the Manufactor field in your table with the a ManufacturersID field with
corresponding ManufacturersID for each Brand Name.

Signature

David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.

I have a table containing following fields:
Brand name, Manufactor, Contact name, contact mail, and Phone
The Brand  name is unique. But the manufactor might have several brand
names.
I want to create a query that shows a list of the manufactors, but they must
only be shown once.
Can anybody help me with this, please.
Thanks in advance
Nikos Yannacopoulos - 23 May 2005 13:39 GMT
... actually, the right approach!

Nikos

> One approach would be to create a separate table for Manufacturers.  You
> could then assign a ManufacturersID number to each manufacturer and replace
> the Manufactor field in your table with the a ManufacturersID field with
> corresponding ManufacturersID for each Brand Name.
 
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.