Solved

Table/Query or Value List field lookup whose content depend on another field's content. How-to?

Posted on 2016-11-23
3
26 Views
Last Modified: 2016-11-25
Hi,

I'm trying to design an Access table in which a field named "Choice" would present, in datasheet view, a dropdown list whose possible values would depend on another field named "Category".

For example, say a record would have " Category='Color' ", then field "Choice" might present a dropdown list with 3 possible choices : "Red", "Green", and "Yellow". However, if it would be " Category='Fruit' " the dropdown list would show 2 possible choices : "Apple" and "Orange".

In other words, the value of the "Category" field would determine the available options in the "Choice" dropdown.

How can I do that?

Thanks,

Jean
0
Comment
Question by:J2015
3 Comments
 
LVL 3

Expert Comment

by:bfuchs
ID: 41899909
create a table with two columns category and choice, there you enter all possible choices for each category, then in selection have two drop downs, one with all categories and the second should have all choices where category = formname. firstcombo.
in the after update event of first combo write combo2.requery.
0
 
LVL 34

Accepted Solution

by:
PatHartman earned 500 total points
ID: 41901179
This is not possible in a table or query.  Cascading combos depends on event processing so you can only do this in a report or form.
0
 

Author Closing Comment

by:J2015
ID: 41901780
That's what I thought. I just wanted to be sure.

Thanks.

jean
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now