If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Would this be possible in Access?
I would like to create a resource of recipies in order that I can use some
yes/no boxes or input boxes to say what ingredients I have in my cupboard and follow the flow chart idea of ending up with a list of recipies which would use up my ingredients. I know a bit of VB, am learning java but know access quite well so I think this is my safest route to creating something that works. I presume I would have tables of ingredients (pork, poultry, veb, seasoning...) and then a form to input what each recipie contains and the amounts of each ingredient. My question is how would I input what ingredients I actually have, and then how do I get a query to return results which only contain the ingredients I have input? I could use a massive form with check boxes but that might be far too large and user unfriendly. If recipies which use ginger only have beef then there's no point asking a person who doesn't have the beef whether they have ginger. I hope this makes sense and thanks for any advice. |
#2
|
|||
|
|||
Hi Clare,
I've read your question message over and over for 10 minutes and I can't paint the picture of the table structure your defining. However, I think your core question is about SQL and the existance or non-existance of data in a field. If that is the case, a test for: "WHERE SomeIngredient Null" should be sufficiant. "Clare" wrote: I would like to create a resource of recipies in order that I can use some yes/no boxes or input boxes to say what ingredients I have in my cupboard and follow the flow chart idea of ending up with a list of recipies which would use up my ingredients. I know a bit of VB, am learning java but know access quite well so I think this is my safest route to creating something that works. I presume I would have tables of ingredients (pork, poultry, veb, seasoning...) and then a form to input what each recipie contains and the amounts of each ingredient. My question is how would I input what ingredients I actually have, and then how do I get a query to return results which only contain the ingredients I have input? I could use a massive form with check boxes but that might be far too large and user unfriendly. If recipies which use ginger only have beef then there's no point asking a person who doesn't have the beef whether they have ginger. I hope this makes sense and thanks for any advice. |
#3
|
|||
|
|||
Hi Clare,
I suppose the general idea could be something like this (* indicates a field is, or is in, the table's primary key): tblIngredients IngredientName* other fields tblInventory IngredientName* - FK DatePurchased* UseByDate Unit (e.g. g, ml) QuantityOnHand other fields? tblRecipe RecipeName* Description Instructions other fields tblRecipeIngredients RecipeName* - FK IngredientName* - FK Quantity With a structure along these lines it would be possible to write a query that returns every recipe that can be made from the ingredients on hand. On Thu, 6 Jan 2005 01:27:02 -0800, "Clare" wrote: I would like to create a resource of recipies in order that I can use some yes/no boxes or input boxes to say what ingredients I have in my cupboard and follow the flow chart idea of ending up with a list of recipies which would use up my ingredients. I know a bit of VB, am learning java but know access quite well so I think this is my safest route to creating something that works. I presume I would have tables of ingredients (pork, poultry, veb, seasoning...) and then a form to input what each recipie contains and the amounts of each ingredient. My question is how would I input what ingredients I actually have, and then how do I get a query to return results which only contain the ingredients I have input? I could use a massive form with check boxes but that might be far too large and user unfriendly. If recipies which use ginger only have beef then there's no point asking a person who doesn't have the beef whether they have ginger. I hope this makes sense and thanks for any advice. -- John Nurick [Microsoft Access MVP] Please respond in the newgroup and not by email. |
#4
|
|||
|
|||
=?Utf-8?B?U3R1YXJ0?= wrote in
: a test for: "WHERE SomeIngredient Null" should be sufficient. Or, rather, WHERE SomeIngredient IS NOT NULL The expression Something NULL always returns NULL regardless of the value (or non-value) of Something. NULL is neither equal-to or unequal-to anything, not even another NULL. B Wishes Tim F |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
object dependency doesn't work / apprear on the View pulldown menu | WylieCoyote | General Discussion | 10 | December 15th, 2004 08:45 AM |
How to get data from Analysis Services cubes into Access | General Discussion | 2 | December 4th, 2004 02:21 PM | |
is Access 2003 any better than XP? | Gorb | General Discussion | 4 | November 11th, 2004 09:44 PM |
is Access 2003 any better than XP? | Gorb | Using Forms | 2 | November 11th, 2004 09:20 AM |
Access 2000 DB in Access 2002 | Tony_VBACoder | General Discussion | 2 | July 28th, 2004 01:23 AM |