DBServices
Programmer
Am building a db for a restaurant. Have been working on this for a while now and MajP has helped me tremendously. I have started another thread due to the extensive length of the previous one concerning the same db...thread702-1616766...
MajP, I would like an idea or two on how to modify an order. To bring you up to date: I have a main order entry form with 3 list boxes (unbound). The first is where users pick a category such as "breakfast, lunch, dinner, extras..."
The second is cascading according to what is selected in the first. i.e., you select "breakfast" in the first and the second is populated with the breakfast menu items. Once you select an item in the second list box, various pop up forms load and ask you to select sides, food preparation, and such. All of this gets appended into the tblMenuItemDetails as you suggested. I really love this idea because you can add as many sides as you need without being bound to just the normal "two" sides that come with a meal in case things change down the road. The third list box is for display only, this is so the user can see the whole order for that table for accuracy as it's being selected before it will eventually be submitted to the kitchen. I had to run two loops as you suggested and it works and looks great.
Now my question is this: How is the best way to modify an item? Example: suppose I want extra cheese in my omelet and no seasoning in my hash browns? I would like to have this inserted into the tblMenuItemDetails because it would be easier that way but I need a little direction on the best way to do this...
Below is my tblMenuItemDetails.
When I select "OE" for my eggs, it's because of the required choices table that holds that info which loads a pop up form and inserts that selection into the tblMenuItemDetails. I want the modifiers to do the same thing but I need to figure out a way to modify the correct item, such as being able to select the item I want to modify and then being able to run an UPDATE query to insert that "extra cheese" and "no seasoning" selections... So, when user selects "Extras" in the first list box, should I have a form pop up with a combo box populated with the items entered already for that order and then once the item is selected, user can modify that item?
I hope I have explained this well enough and I appreciate all of your help...
Thanks, Dannie.
MajP, I would like an idea or two on how to modify an order. To bring you up to date: I have a main order entry form with 3 list boxes (unbound). The first is where users pick a category such as "breakfast, lunch, dinner, extras..."
The second is cascading according to what is selected in the first. i.e., you select "breakfast" in the first and the second is populated with the breakfast menu items. Once you select an item in the second list box, various pop up forms load and ask you to select sides, food preparation, and such. All of this gets appended into the tblMenuItemDetails as you suggested. I really love this idea because you can add as many sides as you need without being bound to just the normal "two" sides that come with a meal in case things change down the road. The third list box is for display only, this is so the user can see the whole order for that table for accuracy as it's being selected before it will eventually be submitted to the kitchen. I had to run two loops as you suggested and it works and looks great.
Now my question is this: How is the best way to modify an item? Example: suppose I want extra cheese in my omelet and no seasoning in my hash browns? I would like to have this inserted into the tblMenuItemDetails because it would be easier that way but I need a little direction on the best way to do this...
Below is my tblMenuItemDetails.
Code:
ID OrdSelect ItemChoice MenuItemChoice PrepDesc
243 183 51 Ham/CheeseOmelet Extra Chees
244 183 42 Hash Browns NO SEASON
245 185 41 NY Strip Well
246 185 51 Eggs OE
247 185 49 Eng Muffin
248 185 42 Grits
When I select "OE" for my eggs, it's because of the required choices table that holds that info which loads a pop up form and inserts that selection into the tblMenuItemDetails. I want the modifiers to do the same thing but I need to figure out a way to modify the correct item, such as being able to select the item I want to modify and then being able to run an UPDATE query to insert that "extra cheese" and "no seasoning" selections... So, when user selects "Extras" in the first list box, should I have a form pop up with a combo box populated with the items entered already for that order and then once the item is selected, user can modify that item?
I hope I have explained this well enough and I appreciate all of your help...
Thanks, Dannie.