Solved

How to connect tables to select items from adjoining tables

Posted on 2011-03-18
11
236 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

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.

Question has a verified solution.

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

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of utilizing SQL Server functions 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 Microsoft Ac…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

929 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

10 Experts available now in Live!

Get 1:1 Help Now