Home Fees/Services Access Examples Tutorials  Access Download  Articles  Search  Contact  Privacy  Links
Combo Box
List Box, Lookup Lists,
Dropdown List VBA Examples
New All Any Combo Box

 Programming Tutorials > Combo Box > Combo Box: All/Any



Best Way to Fill Form Field
Combo Box: All/Any
Dependent Combo Box
Fill In Other Form Fields
Lookup List-Correct Way
Lookup Lists in One Table
Speed up Combo Boxes
Table-based Combo Box
Yes/no Drop Down List


All or Any Choice

List a Default Value For Combo Box and Lookup Lists

Create a drop down lookup list from a table field with ' All' added to the list of values.  This example is often used for selecting specific (or All) records for a report.

The Union query is used in this example and is a very powerful feature of the SQL language.  This example assumes you have read our Microsoft Access database design recommendations.

Combo Box All Choice

Note: Putting a space before the 'A' in All makes this lookup list choice sort to the top.

This method is also great for adding a '<<< New Item >>>' choice to the lookup list.

New! Download Access example of Combo Box Add New Choice.

Warning:  General warning about union queries -  Never try to use aggregate functions (avg, count, sum, etc.) in a union query.  It will drop out duplicate groups of records (in Access at least ).

More info on this topic:

Union Query Downloadable Example

Our Union Query Example demonstrates a method used to add additional choices to drop down lists such as New or All. Using the New choice in a combo box ...
www.blueclaw-db.com/download/union_query.htm

 

Contact Information

Custom Software Development
Microsoft Access 2003 2000 2002(XP) 97 All Windows Versions