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 / July 2006

Tip: Looking for answers? Try searching our database.

Grouping!?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ron - 13 Jul 2006 07:16 GMT
Hi all,
I`m trying to craete  a raw source for combo box from a table.
The problem is that the values shows more then once, I tried to do select
distinct but it didnt help, probably because of the ID(autonumber).

what to do?

TIA,
Ron
Allen Browne - 13 Jul 2006 07:34 GMT
So if there are duplicates, and you are trying to store the ID, which one do
you want?

Try a RowSource like this:
   SELECT Min(ID) AS MinOfID, MyText
   FROM MyTable
   GROUP BY MyText;

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> I`m trying to craete  a raw source for combo box from a table.
> The problem is that the values shows more then once, I tried to do select
> distinct but it didnt help, probably because of the ID(autonumber).
 
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.