Subsections (1 Viewer)

StuartG

Registered User.
Local time
Today, 22:06
Joined
Sep 12, 2018
Messages
125
Hi all,

I have been tasked with implementing a new field into our DB but not sure how to do it. Hopefully I can explain my requirement here.
If the user selects "Biopharma" I only want them to see the results listed in the "Market Sub-Segment and so on.

MarketMarket Sub-Segment
BiopharmaBioanalysis Large Molecule
Development
Discovery
MAM
PAT
QC / CMC
QC/CMC
EnvironmentalAir
Drinking & Groundwater
Soil
Solid Waste
Wastewater

Would I need to create two new columns in the table for the Market and Market Sub-Segment?

Any guidance would be appreciated.

Stuart
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 05:06
Joined
May 7, 2009
Messages
19,247
see Form1 on the demo.
 

Attachments

  • segments.accdb
    572 KB · Views: 140

StuartG

Registered User.
Local time
Today, 22:06
Joined
Sep 12, 2018
Messages
125
see Form1 on the demo.
Thanks Arnel. Will I need to create two separate tables or can I add the info to an existing table in our DB?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 05:06
Joined
May 7, 2009
Messages
19,247
you can have it in a single table.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 17:06
Joined
Feb 19, 2002
Messages
43,342
Just because you can, doesn't mean you should. Market needs a table to define its unique population. SubMarket needs a table to define its unique population. This table includes a foreign key named "MarketID" to reference the Market it belongs to. If you do not use two tables, you have no way of defining the unique set of Markets easily. You will leave yourself open to typos when creating entries in the table.

This is a technique called "cascading combos". There are many examples.
 

Users who are viewing this thread

Top Bottom