Solved

How to connect tables to select items from adjoining tables

Posted on 2011-03-18
11
240 Views
Last Modified: 2012-05-11
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?
0
Comment
Question by:softsupport
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 40

Expert Comment

by:als315
ID: 35170467
Can you upload your tables? I think there are not sensitive information.
0
 

Author Comment

by:softsupport
ID: 35182414
Attached tables Menu.accdb
0
 
LVL 40

Expert Comment

by:als315
ID: 35186858
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)?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:softsupport
ID: 35190067
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
0
 
LVL 40

Expert Comment

by:als315
ID: 35202046
Try this sample as a first step. Menu.zip
0
 

Author Comment

by:softsupport
ID: 35217234
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?
0
 
LVL 40

Expert Comment

by:als315
ID: 35221398
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?
0
 

Author Comment

by:softsupport
ID: 35243570
I will send a drawn example later on today.  Sorry about delay
0
 

Author Comment

by:softsupport
ID: 35280605
Here is the example example of command box option or ellipse
0
 
LVL 40

Accepted Solution

by:
als315 earned 500 total points
ID: 35306041
May be this is suitable.
Menu.zip
0
 

Author Closing Comment

by:softsupport
ID: 35308965
thank you
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

617 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