Solved

How to connect tables to select items from adjoining tables

Posted on 2011-03-18
11
235 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
  • 6
  • 5
11 Comments
 
LVL 39

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 39

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
 

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 39

Expert Comment

by:als315
ID: 35202046
Try this sample as a first step. Menu.zip
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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 39

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 39

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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 …

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now