473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

linking dropdown list options

hi i have a problem that I have tried desperately to tackle but cannot
seem to complete. basically i am trying to create a form with three
dropdown lists, the tricky part is i want the 3rd drop down box's
options to be dependant on the choice made in the 2nd dropdown...and
the 2nd dropdown's options to be dependant on the choice made in the
1st dropdown. For example:

1st dropdown

product 1
product 2
product 3

2nd dropdown (if product 1 is chosen)

version a
version b
version c

2nd dropdown (if product 2 is chosen)

version d
version e
version f

3rd dropdown (if version a is chosen)
part za
part zb
part zc

thanks in advance for anyone that knows how to pull this off!
Nov 13 '05 #1
2 2036
See whether the example in http://www.mvps.org/access/forms/frm0028.htm at
"The Access Web" helps.

The idea is that in the AfterUpdate event of the first combobox, you need to
modify the RecordSource property of the second combobox so that it's looking
for whatever values are appropriate for the content of the first box.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"ahoodless" <da**********@hotmail.com> wrote in message
news:53**************************@posting.google.c om...
hi i have a problem that I have tried desperately to tackle but cannot
seem to complete. basically i am trying to create a form with three
dropdown lists, the tricky part is i want the 3rd drop down box's
options to be dependant on the choice made in the 2nd dropdown...and
the 2nd dropdown's options to be dependant on the choice made in the
1st dropdown. For example:

1st dropdown

product 1
product 2
product 3

2nd dropdown (if product 1 is chosen)

version a
version b
version c

2nd dropdown (if product 2 is chosen)

version d
version e
version f

3rd dropdown (if version a is chosen)
part za
part zb
part zc

thanks in advance for anyone that knows how to pull this off!

Nov 13 '05 #2
You'll find an example that may be of assistance at
http://accdevel.tripod.com/dwnindx.htm -- "QueryByForm with Three Combo
Boxes". The key is using the AfterUpdate event to Requery the other Combo
boxes. That example is in Access 97 format, but AFAIK will convert without
problem to any later version of Access.

Larry Linson
Microsoft Access MVP
"ahoodless" <da**********@hotmail.com> wrote in message
news:53**************************@posting.google.c om...
hi i have a problem that I have tried desperately to tackle but cannot
seem to complete. basically i am trying to create a form with three
dropdown lists, the tricky part is i want the 3rd drop down box's
options to be dependant on the choice made in the 2nd dropdown...and
the 2nd dropdown's options to be dependant on the choice made in the
1st dropdown. For example:

1st dropdown

product 1
product 2
product 3

2nd dropdown (if product 1 is chosen)

version a
version b
version c

2nd dropdown (if product 2 is chosen)

version d
version e
version f

3rd dropdown (if version a is chosen)
part za
part zb
part zc

thanks in advance for anyone that knows how to pull this off!

Nov 13 '05 #3

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

Similar topics

4
by: Marc | last post by:
I've gotten everything up and running except for this -- I'd like to be able to have people have a dropdown list of cities in the US to use (or wherever) and not have to input them manually into a...
1
by: Joseph Barron | last post by:
Here is a SIMPLE problem that I'm trying to solve. It works in Netscape 6.2, but IE6 gives ""No such interface supported." Below are page1.htm and page2.htm . In page1.htm, there are two...
5
by: Ganco | last post by:
We have a dropdown combobox, where some of the text is wider than the textarea. I cannot set the width of the SELECT any higher due to design restrictions on the company website. When clicking...
1
by: middletree | last post by:
For an ASp Intranet app, I have some code that should work, but I am not able to make it happen for some reason, after spending considerable time on this. I am pretty thick when it comes to...
10
by: JL | last post by:
Does anyone have any ideas on this please? I don't know how to evaluate the no-blank selections against each other from a form as follows: . I have a form with 6 dropdown fields, each...
5
by: Nick Calladine | last post by:
Learning : Loop to list all dropdown box values on a form Can some one point me in the right direction : I have a form which I want to loop through I basically want to get all the selected...
6
by: passion_to_be_free | last post by:
This is probably simple, but I can't seem to find it anywhere. I have have some values stored in javascript variables. I have a <select> dropdown list whose options correspond to these values. I...
1
by: Jack | last post by:
Hello, I have a dropdown list on a user control and the AutoPostBack property is set to True. I want to use the SelectedIndexChanged event to populate some text boxes based on what the user...
0
acoder
by: acoder | last post by:
Problem The select object's add method doesn't append options to the end of the list. Browser Internet Explorer Example The Javascript code for appending an option element at the end of a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.