Hello again, hopefully this will make sense. first some background. I grow microgreens. What I am looking to do now is have a form that has different tabs that will be populated with data by queries. These tabs are for "tasks" that need to be completed on "this day". The tasks are "Soak" ( seeds that need to be soaked), "Sow" (what seeds need to be plated today) and a few more. One tab showing "All Tasks" (The others are Blackout, Uncover, Harvest, Package, but maybe not needed just yet)
I have tables: Orders, Products, and Sow.
What I am looking to do is for each of the tabs, when selected pull the relevant data for the date selected.
For Example: Today I need to do the planting, so I will look in the "Sow" tab and todays date. I would like to see: (The query would look up the Product from the Orders table based. It will look at the "Days to Maturity" field and work backwards from the "Harvest date" to determine that today what needs to be planted to make that Harvest Date)
Product:Broccoli SeedType:Broccoli SowRate: 25 Tray Size 10x20 Trays to Sow: 2 (1.5) Harvest date: 01/01/2023
Product:Broccoli SeedType:Broccoli SowRate: 25 Tray Size 10x20 Trays to Sow: 2 (1.5) Harvest date: 01/01/2023
So, the query would need to first determine the number of trays. It will first look up "Broccoli" in the Orders table with this "Harvest date". It will determine how many packages are ordered. So lets say 5 small packages ordered and 1 medium. Then, it will look up the "Projected Yield" in the Products table. Broccoli is say 180g (this is for a 10x20 tray, 10x10 trays would be 1/2 that.) It will then have to see how man (g) per package size are used. This is again on the Products table "Grams Per Small Pkg" and "Grams per Med Pkg". So that total would be 250g, which is the yield I would need to get to make the order. So 250/180 is 1.38. So in the "Trays to Sow" above, that is why you see 1.5 in parenthesis, and it is rounded up to 2. This would show me that I could do 1 tray at 10x20 and change the second row for broccoli to a 10x10 tray. Or I could leave it as 2 trays of 10x20.
The query would pull all of the products from the orders table that need to be planted. I would also like to be able to add a new line to be able to add a new tray to the list. Maybe I wanted to do a tray of arugula for a test even though I didn't have any ordered for this harvest date.
When all of the data is set, these would go into the Sow table.
Again, my question would be: how do I get a query to show this data in a form and also be able to change it?
I have tables: Orders, Products, and Sow.
What I am looking to do is for each of the tabs, when selected pull the relevant data for the date selected.
For Example: Today I need to do the planting, so I will look in the "Sow" tab and todays date. I would like to see: (The query would look up the Product from the Orders table based. It will look at the "Days to Maturity" field and work backwards from the "Harvest date" to determine that today what needs to be planted to make that Harvest Date)
Product:Broccoli SeedType:Broccoli SowRate: 25 Tray Size 10x20 Trays to Sow: 2 (1.5) Harvest date: 01/01/2023
Product:Broccoli SeedType:Broccoli SowRate: 25 Tray Size 10x20 Trays to Sow: 2 (1.5) Harvest date: 01/01/2023
So, the query would need to first determine the number of trays. It will first look up "Broccoli" in the Orders table with this "Harvest date". It will determine how many packages are ordered. So lets say 5 small packages ordered and 1 medium. Then, it will look up the "Projected Yield" in the Products table. Broccoli is say 180g (this is for a 10x20 tray, 10x10 trays would be 1/2 that.) It will then have to see how man (g) per package size are used. This is again on the Products table "Grams Per Small Pkg" and "Grams per Med Pkg". So that total would be 250g, which is the yield I would need to get to make the order. So 250/180 is 1.38. So in the "Trays to Sow" above, that is why you see 1.5 in parenthesis, and it is rounded up to 2. This would show me that I could do 1 tray at 10x20 and change the second row for broccoli to a 10x10 tray. Or I could leave it as 2 trays of 10x20.
The query would pull all of the products from the orders table that need to be planted. I would also like to be able to add a new line to be able to add a new tray to the list. Maybe I wanted to do a tray of arugula for a test even though I didn't have any ordered for this harvest date.
When all of the data is set, these would go into the Sow table.
Again, my question would be: how do I get a query to show this data in a form and also be able to change it?