These are what are called Many-to-Many relationships. What is required is a
separate table for roles, food sources, vitamins, deficiencies.
Then you need a single table with a record for each unique combination. The
individual tables will contain an ID and a value like:
tblVitamins
VitaminID - AutoNumber
Vitamin - Text
The junction table will contain the ID values from each related table:
RoleID
VitaminID
FoodSourceID
etc.
You can get a good idea about how to build your tables from Crystal Long's
tutorials:
http://www.accessmvp.com/Strive4Peace/Index.htm
http://www.accessmvp.com/Strive4Peace/Videos/Index.htm
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
"??? ???? ???" <@discussions.microsoft.com> wrote in message
news:F913A1EF-3792-47C7-B5EB-(E-Mail Removed)...
>I am building a database of food nutrients and their characteristics
>(roles,
> food sources, benefits, deficiency symptoms, combination with other
> nutrients
> etc.) . Since each food nutrient has more than one roll, one source etc, i
> currently have a huge table with the food nutrients as column titles
> (vitamin
> A, B, C etc) and in column A i named lines with characteristics : role 1 ,
> role 2, role 3..., food source 1, food source 2, food source 3...etc.
> Reading the notes exchange on the group i realize i have not set up the
> table correctly for Access since i can't search for data in this table but
> i
> can't think of the correct way of doing it.
> Eventually by goal is to be able to run a query for a word (for example
> "liver") in the whole database, and to receive everything that has to do
> with
> it (for example- liver is a food source for certain nutrients, but also
> liver
> can be damaged by shortage of a food nutrient etc.
> Can you please let me know what is the best way to store my database? and
> how to run such queries once the database is set up correctly?
> I have been trying to solve this for a very long time without success now,
> so i would really appreciate your help. Thanks!
>