Results 1 to 4 of 4
  1. #1
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50

    Database: From recipe to shopping list


    Hello everyone,

    I am working on a database which I want to use to generate a shopping list for a given menu.

    So, I have a created a tabMenu with the fields
    ID refCourse1 refCourse2, refCourse3, refCourse4

    Each Course field references to a table tabRecipes with the fields
    ID numRecipesName

    I also have a table tabGroceries with the fields
    ID txtGroceryName refSource numPricePerUnit

    The refSource field references to another table providing the information where to buy the stuff.

    The report at the end should be something like:

    Menu: Italian Dinner
    Course1: Antipasti
    Course2: Pasta
    Course3: Secondi
    Course4: Dolce

    Groceries Amount Price Per Unit Price
    Fennel 10 1.49$ 14.90$
    Arugula 10 2.99$ 20.90$
    ...

    I am wondering how I can assign to each recipe in my database a list of ingredients?

    Thanks for your help in advance,
    Benjamin

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    tabMenu is not a strictly normalized structure but might be workable for your requirements, as long as you don't want meals with more than 4 courses. With this structure, if you want a report that lists the courses vertically, will require a UNION query. Otherwise, restructure the table.

    For the grocery list, you need another table that associates recipe with grocery items.

    tabRecipeItems
    RecipeID
    GroceryID
    Quantity
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    schwabe is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2012
    Location
    San Francisco Bay Area
    Posts
    50
    hi June7,

    thank you for the answer - exactly what I was looking for.

    Benjamin

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to list sports scores in a database
    By chemmiah in forum Database Design
    Replies: 1
    Last Post: 11-21-2012, 03:53 PM
  2. Recipe Tables with Master Ingredient List
    By rothian717 in forum Access
    Replies: 4
    Last Post: 09-19-2012, 10:23 AM
  3. Recipe book issues
    By gumberculies in forum Access
    Replies: 2
    Last Post: 10-07-2011, 10:58 AM
  4. Massive check-list database
    By JFo in forum Access
    Replies: 103
    Last Post: 09-19-2011, 07:06 PM
  5. Replies: 2
    Last Post: 04-01-2011, 11:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums