I have a combo box cboDealerSearch1 based off of a table. Is there anyway that I can have it sort [MasterList_Dealers].[AS8DESC] in ascending order? I tried to base the combo box off of a query instead of a table so I could control the sort order but when I did that, it put a different field as the control source, which won’t work for this applications. [MasterList_Dealers].[AS8CODE] needs to be the control source. I tried to sort the table in ascending order but it always reverts back to the original order.
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Combo Box
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Combo Box
- This topic has 7 replies, 2 voices, and was last updated 15 years, 7 months ago.
AuthorTopicWSTheresa01
AskWoody LoungerSeptember 28, 2009 at 12:11 pm #462800Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody LoungerSeptember 28, 2009 at 1:38 pm #1179056I have a combo box cboDealerSearch1 based off of a table. Is there anyway that I can have it sort [MasterList_Dealers].[AS8DESC] in ascending order? I tried to base the combo box off of a query instead of a table so I could control the sort order but when I did that, it put a different field as the control source, which won’t work for this applications. [MasterList_Dealers].[AS8CODE] needs to be the control source. I tried to sort the table in ascending order but it always reverts back to the original order.
Try the following:
– Create a query based on MasterList_Dealers.
– Add AS8CODE and AS8DESC to the query grid.
– Clear the Show check box for AS8DESC.
– Set the sort order for AS8DESC to Ascending.
– Save this query as (say) qryDealers.
– The SQL for this query should look like thisSELECT MasterList_Dealers.AS8CODE
FROM MasterList_Dealers
ORDER BY MasterList_Dealers.AS8DESC;– Set the Row Source of cboDealerSearch1 to qryDealers.
– Make sure that the Column Count of the combo box is set to 1.
– And that Column Widths is blank or contains a single number. -
WSTheresa01
AskWoody LoungerSeptember 28, 2009 at 3:04 pm #1179098Try the following:
– Create a query based on MasterList_Dealers.
– Add AS8CODE and AS8DESC to the query grid.
– Clear the Show check box for AS8DESC.
– Set the sort order for AS8DESC to Ascending.
– Save this query as (say) qryDealers.
– The SQL for this query should look like thisSELECT MasterList_Dealers.AS8CODE
FROM MasterList_Dealers
ORDER BY MasterList_Dealers.AS8DESC;– Set the Row Source of cboDealerSearch1 to qryDealers.
– Make sure that the Column Count of the combo box is set to 1.
– And that Column Widths is blank or contains a single number. -
WSTheresa01
AskWoody LoungerSeptember 28, 2009 at 3:06 pm #1179099Thank you for your reply Hans.
That put the AS8CODE in the end user’s combo box, which unfortunately make for a bad search as rarely do they know if. I may be going about this wrong. What I’m trying to do is provide the end user with an easy way to search for the customer that they serviced. Ideally, I would like to allow them to start typing and then select the correct customer from the drop down list. The combo box was working well until I realized that the sort order was scrambled because the original table that I imported was sorted by dealer number. I hope that makes sense. Thanks again. -
WSHansV
AskWoody LoungerSeptember 28, 2009 at 3:17 pm #1179101Please provide sufficient information about the table; preferably attach a stripped down and zipped copy of the database:
-
[*]Make a copy of the database (in Access 2000 or 2002-2003 format) and work with that.
[*]Remove all database objects (tables, queries, forms, reports, macros and modules) that are not relevant to the problem.
[*]In the remaining table(s), remove most records – leave only the minimum number necessary to demonstrate the problem.
[*]Remove or modify data of a confidential nature.
[*]Perform a compact and repair (Tools/Database Utilities).
[*]Make a zip file containing the database.
[*]If you have difficulties getting the zip file reasonably small, save the database in Access 97 format and then zip it.
[*]Attach the zip file to a reply.
-
-
-
-
WSTheresa01
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSTheresa01
AskWoody Lounger
-
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Best and easiest way to Split PST File (Awaiting moderation)
by
Jamesjackson0847
52 minutes ago -
Is it a bug or is it expected?
by
Susan Bradley
3 hours, 25 minutes ago -
Microsoft Speech Recognition Service Error Code 1002 (Awaiting moderation)
by
stanhutchings
4 hours, 30 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
1 hour, 3 minutes ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
9 hours, 3 minutes ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
7 hours, 55 minutes ago -
Multiple Partitions?
by
CWBillow
5 hours, 6 minutes ago -
World Passkey Day 2025
by
Alex5723
16 hours, 38 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
1 day, 7 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
4 hours, 32 minutes ago -
Cached credentials is not a new bug
by
Susan Bradley
1 day, 12 hours ago -
Win11 24H4 Slow!
by
Bob Bible
1 day, 12 hours ago -
Microsoft hiking XBox prices starting today due to Trump’s tariffs
by
Alex5723
1 day, 9 hours ago -
Asus adds “movement sensor” to their Graphics cards
by
n0ads
1 day, 14 hours ago -
‘Minority Report’ coming to NYC
by
Alex5723
1 day, 11 hours ago -
Apple notifies new victims of spyware attacks across the world
by
Alex5723
1 day, 23 hours ago -
Tracking content block list GONE in Firefox 138
by
Bob99
1 day, 22 hours ago -
How do I migrate Password Managers
by
Rush2112
1 day, 6 hours ago -
Orb : how fast is my Internet connection
by
Alex5723
1 day, 8 hours ago -
Solid color background slows Windows 7 login
by
Alex5723
2 days, 11 hours ago -
Windows 11, version 24H2 might not download via Windows Server Updates Services
by
Alex5723
2 days, 9 hours ago -
Security fixes for Firefox
by
Susan Bradley
1 day, 10 hours ago -
Notice on termination of services of LG Mobile Phone Software Updates
by
Alex5723
2 days, 21 hours ago -
Update your Apple Devices Wormable Zero-Click Remote Code Execution in AirPlay..
by
Alex5723
3 days, 6 hours ago -
Amazon denies it had plans to be clear about consumer tariff costs
by
Alex5723
2 days, 21 hours ago -
Return of the brain dead FF sidebar
by
EricB
2 days, 9 hours ago -
Windows Settings Managed by your Organization
by
WSDavidO61
1 day, 12 hours ago -
Securing Laptop for Trustee Administrattor
by
PeachesP
14 hours, 10 minutes ago -
The local account tax
by
Susan Bradley
2 days, 10 hours ago -
Recall is back with KB5055627(OS Build 26100.3915) Preview
by
Alex5723
3 days, 19 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.