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 / October 2007

Tip: Looking for answers? Try searching our database.

Two sorting levels in combo dropdown?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CW - 30 Oct 2007 16:26 GMT
I have a combo that displays 3 columns - first the country, then our agents
in each country, then their "preferred status" (a rating from 1 to 3).
At the moment this is sorted by country, so all the agents in each country
are grouped together.
However, it would be even better if the agents within each country were
listed in "preferred status" order from 1 to 3.
Is it possible to have more than one level of sorting within a combo's
dropdown contents?
This is how my Row Source looks now...how would it have to change, to do this?

SELECT Agents.AgtCtry, Agents.AgtName, Agents.PreferredAgtStatus FROM Agents
ORDER BY Agents.AgtCtry

Many thanks
CW
Klatuu - 30 Oct 2007 16:30 GMT
ORDER BY Agents.AgtCtry, AgentsPreferredAgtStatus
Signature

Dave Hargis, Microsoft Access MVP

> I have a combo that displays 3 columns - first the country, then our agents
> in each country, then their "preferred status" (a rating from 1 to 3).
[quoted text clipped - 11 lines]
> Many thanks
> CW
CW - 30 Oct 2007 16:47 GMT
Ah - why didn't I think of that!!!
Thanks Dave
CW

>  ORDER BY Agents.AgtCtry, AgentsPreferredAgtStatus
>
[quoted text clipped - 13 lines]
> > Many thanks
> > CW
 
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.