combo boxes
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Combo Boxes

Combo Boxes

The UK's most regular instructor-led training courses.
Training information: microsoft access training course · Courses in microsoft access · Microsoft Access Training London
See also · microsoft access training · access vba courses · access database course

resolvedResolved · Medium Priority · Version 2007

Combo Boxes

Sarah has attended:
Access Intermediate course
Access Intermediate course
Access Advanced course
Project Management course

by - delegate Sarah [8 posts] (2008 Apr 10 Thu, 12:09) replyReply

Hi -

I have a form (based on one table) on which I have added a Combo box in order to quickly select which company is shown on the form. My form is already created and when you open it it automatically defaults the sorting of Company Name by A-Z, which is ideal. When I put my Combo Box in (via the wizard on the form) my list of names in there is not sorted at all and I cannot figure out how to make it default to sort A-Z on Company Names like the form does.

Without the ComboBox being sorted it is as good as useless for a quick selection tool.

Also - is it possible to have a combo box (or another search tool) on a sub-form?

Please help!

Thanks

Access VBA 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Dec 4 Thu + 5 Fri Southwark 7 book now £345 £399
2003 2009 Jan 8 Thu + 9 Fri Southwark 6 book now £450 £485
2003 2009 Feb 5 Thu + 6 Fri Southwark 8 book now £275 £399
2003 2009 Mar 5 Thu + 6 Fri Southwark 7 book now £345 £399
2003 2009 Apr 8 Wed + 9 Thu Southwark 8 book now £275 £399
2003 2009 May 7 Thu + 8 Fri Southwark 8 book now £275 £399
Full Schedule: See all 12 Access VBA course dates.
Bookings currently available until 5th November 2009.

RE: Combo Boxes

by - trainer Richard platinum contributer[818 posts] (2008 May 13 Tue, 16:21) replyReply

Hello Sarah,

Hope you enjoyed your Microsoft Access courses with BEST Training.
Thank you for your question regarding Combo Boxes.

1.ORDERING COMBO BOX LIST
As the content of a Combo box list is generated by an SQL query, it makes sense that if we modify the query or data source, then the list will also change.

To make this change, switch to the properties window of the combo box, then select the DATA tab.
Under ROW SOURCE, click the three dots (...) at the end of the property to launch the query builder.
Sort the field you want ordered
Close the query, click on YES.
This will update the SQL statement and sort the list.

An alternative is to build the Combo box from scratch by using the TOOLBOX and Wizard. During this process, one of the options is to sort the fields.

2. COMBO BOX IN SUBFORM
Best way to do this is to ensure that the combo box exists at the TABLE level and then it will show through to the form. I suggest you make a copy of your database, test your changes, and once you are confident in makeing the changes then implement to your live database.

Here is an example
Let say you have a Supplier and a Product table.
The Product table will have a field that looks up the Supplier name - should be a Lookup field (in other words, Combo Box!)
Once you have set this up, make a simple form from the Product table. Notice how the Supplier field is a Combo box!
Apply this thinking to your subform, and let me know what you come up with.

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Richard
Microsoft Office Specialist Trainer


Related articles

· Get More Out of MS Access Courses
· How to Find a Third-Party Venue for Microsoft Access Training
· Three Myths About Microsoft Access
· Microsoft Access Cheat Sheet: Tips and Shortcuts
· Access VBA Training Adds Power to your Databases

Please browse our web site to find out more about
microsoft access training course and other Microsoft training courses.

Access tip:

Label printing

You can create a report in Access for printing labels All you have to do is is click New under the Reports object and then select Label Wizard and follow the steps

View all Access hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz