Relationships OK?

I am setting up tables and establishing relationships between them. Below is how I have set them up.
My objective is to track daily my protein, carb and fat input based upon various recipes and mealtimes. I see my form as a form with sub form. Will what I've done get me there?
Table Relationships
Frank FreeseAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
So would you have multiple records in tblDailyMeals for each Meal consumed during a Day? And each of those records would point to one (and only one) record in tblRecipe?

If so, then it would seem the table structure would work to track what you mention. I'd expect to see a form based on tblDietRecord, with a subform based on tblDailyMeals.  The DailyMeals subform could perhaps be a Continuous listing, where you'd select a record from tblRecipes for each row in that table (i.e. for each Meal for the Day).

What does tblMealTime hold? I assume just the Time of the Meal? If so, I'm not sure it needs to be broken out into a separate table, but without knowing more it's hard to say.
Frank FreeseAuthor Commented:
Thanks for you comments. First of all the table tblMealTime maintains when a meal is to be taken. Mine has Breakfast, Morning Snack, Lunch, Afternoon Snack, and Dinner. Therefore, when I select a meal time in my sub form I can choose which meal I am taking.

Now it may be possible than I could have the same Afternoon snack as I had for the Morning snack. It may also be possible that I'll need a combination of menus for a mealtime to meet the target set. Does this complicate anything?

Thanks for the tip on the sub form needing to be a Continuous listing. I'd forgot about that.
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
No, that doesn't really complicate anything.

Looks like tblMealTime is just a lookup table, so you're okay with that. I just wasn't sure what sort of data it held, and how it was related to the other data.

So with the setup you have, you can enter (a) a record for each Day, (b) multiple records for the Meals for each Day and (c) multiple records for each Recipe provided at each Meal. That should give you the ability to track the various metrics you want.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Frank FreeseAuthor Commented:
Scott - thanks. Now I'll move to the form/subform. Appreciate all EE's
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.