Solved

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

Posted on 2016-11-23
3
55 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 4

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 35

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
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 …

770 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