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 / Forms Programming / April 2005

Tip: Looking for answers? Try searching our database.

combo box? multiple identicle entries... only one selection?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brook - 21 Apr 2005 06:55 GMT
Hello All...

I have a combo box that I use for a search feature on form for a field
'size' from form orders.

I want the combo box to just show one value for each of size rather that
each item that has a size?

I hope this is clear ?

Any ideas ? Suggestions?

Brook
Graham Mandeno - 21 Apr 2005 11:39 GMT
Hi Brook

Add the keyword "DISTINCT" to the SQL statement in the RowSource of your
combobox.  For example, instead of:
   Select Size from MyTable;
use this:
   Select distinct Size form MyTable;
Signature

Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

> Hello All...
>
[quoted text clipped - 9 lines]
>
> Brook
Klatuu - 21 Apr 2005 23:01 GMT
If your query is SQL, then Graham's suggestion should do the trick.  If you
used QBE to create your query, then go to design mode, click the Totals
Button, and set the Totals row to Group By.

> Hello All...
>
[quoted text clipped - 9 lines]
>
> Brook
 
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.