473,473 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to OPTIONALLY limit one combo box on another

3 New Member
Hi,

I have a form whereby I have two comboboxes, SUPPLIER and APPLICATION. The APPLICATION list is limited to the SUPPLIER in the first combobox.
Sometimes however I don't remember who the supplier is and would like the second box to be usable if no SUPPLIER is selected ie all the APPLICATIONS are available in the list.

Any ideas on how to do this?
Sep 20 '07 #1
1 1034
Scott Price
1,384 Recognized Expert Top Contributor
Hi,

I have a form whereby I have two comboboxes, SUPPLIER and APPLICATION. The APPLICATION list is limited to the SUPPLIER in the first combobox.
Sometimes however I don't remember who the supplier is and would like the second box to be usable if no SUPPLIER is selected ie all the APPLICATIONS are available in the list.

Any ideas on how to do this?
In your Application combo box, I'm assuming you have the RowSource set to something like this:
Expand|Select|Wrap|Line Numbers
  1. Select ApplicationID, AppName From tblApplication Where tblApplication.SupplierID = Me!cboSupplier
One idea is to programmatically change the RowSource on the click of a button.
Expand|Select|Wrap|Line Numbers
  1. Me!cboApplication.RowSource = "SELECT ApplicationID, AppName FROM tblApplication"
Regards,
Scott
Sep 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: deko | last post by:
Is there any way to limit the number of records loaded into a ListBox? I looked at qdf.MaxRecords (to apply to the query that is the RowSource of the ListBox) but that only applies to ODBC data...
4
by: tlyczko | last post by:
I read about limiting combo boxes' list data, for example, limiting the list of values in the second combo based on values in the first combo, and I found the Dev Ashish site link. I have two...
2
by: Mark | last post by:
All, I have read the article on the MVP site regarding this topic (http://www.mvps.org/access/forms/frm0028.htm) but I am having some problems implementing it. I have a lookup table which...
2
by: JweldonH | last post by:
My issue probably has a simple answer. I want to limit a populated combo box to items that are NOT in use in another table. I have a Table with a field that looks up values from another table via...
1
by: injanib via AccessMonster.com | last post by:
is it possible that if the limit to list property of a combobox is set to true the focus is passed onto another field? What I mean is that I have a combo box with the limit to list property set to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.