473,756 Members | 1,808 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Selecting "ALL" items from a Combo Box

If one is using a query as a Row Source on a Form, is there a way to
set up a blank space, or to insert the word "ALL" in a combo box that
represents ALL combo box row items.

The scenario is as follows. I have two combo boxes. One for
COURSECODEs and one for SECTIONCODEs. I select a COURSECODE from teh
1st combo box. Then, from the 2nd combo box I want to select ALL
SECTIONCODEs (associated with the COURSECODE).

This is for MS Access 2002.

Many thanks in advance.

Marcus
******

Nov 13 '05 #1
3 4512
"to*******@yaho o.ca" <to*******@yaho o.ca> wrote in
news:11******** **************@ l41g2000cwc.goo glegroups.com:
If one is using a query as a Row Source on a Form, is there a
way to set up a blank space, or to insert the word "ALL" in a
combo box that represents ALL combo box row items.

The scenario is as follows. I have two combo boxes. One for
COURSECODEs and one for SECTIONCODEs. I select a COURSECODE
from teh 1st combo box. Then, from the 2nd combo box I want to
select ALL SECTIONCODEs (associated with the COURSECODE).

This is for MS Access 2002.

Many thanks in advance.

Marcus
******


You'll need to create a union query based on your your current
row source. You must do this from the VIEW SQL mode of the query
builder.

Select " << ALL >>" as SECTIONCODE from SECTIONCODES UNION Select
SECTIONCODE from SECTIONCODES ;

The number and names of fields added must match in the two select
statements.

A more difficult question is how to process the " << ALL >> "
option when you select it.
--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #2
Many thanks to both Bob and Pietlin

Marcus
*********

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2487
by: Ones Self | last post by:
Hi, I have a tree structure which is maintained through the use of a path enumerated column: CREATE TABLE items ( item_id NUMERIC NOT NULL, path VARCHAR2(64) NOT NULL );
3
4669
by: Gumtree | last post by:
Hi folks, The user interface I'm trying to impliment looks a bit like this: Not Chosen Chosen .------------. .------------. |Item 1 | -> |Item 3 | |Item 2 | <- |Item 4 | |Item 6 | >> |Item 5 |
3
2414
by: james.dixon | last post by:
Hi I was wondering if anyone else had had this problem before (can't find anything on the web about it). I have three select elements (list boxes - from here on I'll refer to them as 'the list boxes'). Users can add and remove items from the list boxes. When the users are adding and removing items, the list boxes are single
3
2458
by: Adam Toline | last post by:
In reference to the following: http://www.bellecose.com/form.htm At the top of each column there is a box for "All". When one is checked I need to check all of (and only) those boxes underneath. Now, the rub here is that every checkbox on the page (except the "All"s)
3
15713
by: Bry | last post by:
I know you can select a single item in a list view using the following code listView.Items.Selected = true; Is it possible to do this for all items in the listView control without using a loop? Thanks.
3
41934
by: Jonesgj | last post by:
Chaps, How would I select all items in a listbox using code? I'm sure its an easy one but .... Thanks
2
5868
by: bhdvir | last post by:
Does anybody have any advice on selecting all records within a iif-statement? I have a form in which one has to state if all projects or just a selection of projects are to be used for a query. If "all projects" are required the query should show all records. In the example below the iif-statement should select all projects or just "projectnumber 2". I tried the following as criteria but none is working:
4
2091
by: Duncan Smith | last post by:
So far, the quikest way I have found to select all items in a list box is to turn off updates, set a wait cusror and then call SetSelected on each item (see below), but it's too slow when the control is populated with tens of thousands of items. Ideally the wait-cursor shouldn't be needed as I hadn't anticipated a select-all operation taking a noticeable amount of time. Has anyone found a way to make this appear instantaneous as it...
3
11732
by: kimiraikkonen | last post by:
Hi, I want to display ALL the items (includes unselected items) of listbox control. How can i code this? Should i use "for each" or other? For example: Assume you have a listbox with 3 items sth like: Hello There Guys
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9872
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.