Link to home
Start Free TrialLog in
Avatar of softsupport
softsupportFlag for United States of America

asked on

How to connect tables to select items from adjoining tables

I am creating a Food Menu database,  in Access 2007 with following tables
tblComponent (Bread, Meat, etc)
tblFood
tblMenu
tblMealType (Breakfast, Lunch, Snack)
I have all foods listed in tblFood
and food components in tblComponents

Want to create a menu in tblMenu for example:
On Monday,
for 3 separate meals, Breakfast, Lunch, Snack
Each meal type must have 3 - 4 components chosen, ie: Breakfast, must have bread, fruit, drink.  So when choosing breakfast, 3 components would appear and from there would choose the food or drink.

An example would be:
on Monday would like to choose a bread component that would allow me to pick from this list:
cornbread
biscuits
rolls
muffins
cereal, etc

After selecting the above food would then be able to click another box allowing me to choose a different component for fruit that would list
apples
oranges
strawberries
etc


I am able to connect the entire food table to the tblMenu and choose multiple items there, but not exactly what I am looking for.
The food list can be large, so is there a way to create a small pop-up window to choose from?
Avatar of als315
als315
Flag of Russian Federation image

Can you upload your tables? I think there are not sensitive information.
Avatar of softsupport

ASKER

Attached tables Menu.accdb
WeekDays only from Monday to Friday?
Do you like to have hystory? Monday with date?
Only one Food for every Component type could be selected (if Olives are presented, could you select also Apples)?
Yes, only weekdays, Monday - Friday
Yes, would like history.  These menus will be designed for schools.  Right now are weekly without dates, but will eventually be using dates.  Is it possible to have weekdays now and then use dates later?
More than one Food maybe chosen for each component. So if Olives are presented, you could also select apples)
Thank you
Try this sample as a first step. Menu.zip
Ok... Great first step.  Any chance to have components next to an ellipse box or command box.  When command box is pressed, then pop up box would list food items to choose from or Access does not work in that manner?  If not, this is fantastic.

If I were to create a report, can the report look like a calendar with food listed in the dates?
When command box is pressed, then pop up box would list food items to choose from
You like to change comboboxes with food items to buttoms? I can't clear undestand your wish. May be you can draw example?
I will send a drawn example later on today.  Sorry about delay
Here is the example User generated image
ASKER CERTIFIED SOLUTION
Avatar of als315
als315
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you