这些是我想要合并的 TBL_MATERIALS 和 TBL_PRODUCTS 的源表。根据 TBL_MATERIALS 中有多少行,这些列应该是动态的。
TBL_材料
|===============================|
|MATERIAL | Gram |
|-------------------------------|
|Flour-Hard | 25 |
|Flour Soft | 76 |
|Sugar-White | 25 |
|Sugar-Washed | 15 |
|Sugar-Brown | 10 |
|CalciumPropionate | 2.5 |
|SodiumBenzoate | 2 |
|TartarCream | 5 |
|MilkSkimmed | 20 |
|===============================|
TBL_产品
|===============================|
|Product | Batch |
|-------------------------------|
|Ameriloaf | 5 |
|Peter Pann | 2.5 |
|Chizmada | 3 |
|Ubemada | 8 |
|Millionaire | 9 |
|Sweet Maria | 2.5 |
|Butter Tarts | 1.25 |
|Caramel Croquette | 4 |
|Garlic Stick | 11 |
|===============================|
这就是我想要的表格应该是什么样子。QUERY_CUSTOM 的列应该是动态的,当我在 TBL_MATERIALS 上添加新项目时,应该显示下表的新列。我想我们会使用 CREATE TABLE 之类的东西。我还在研究这件事。我希望这能帮助你理解。
QUERY_CUSTOM
|=================================================================================================|
|Product | Batch | Flour-Hard | Flour-Soft | Sugar-White | Sugar-Washed | etc.etc. |
|-------------------------------------------------------------------------------------------------|
|Ameriloaf | 5 | Gram*Batch | ALL BLANK | | | |
|Peter Pann | 2.5 |ex.25*2.5=75| CELLS | | | |
|Chizmada | 3 | " | SHOULD | | | |
|Ubemada | 8 | " | BE FILLED | | | |
|Millionaire | 9 | " | WITH | | | |
|Sweet Maria | 2.5 | " |[GRAM] | | | |
|Butter Tarts | 1.25 | " | MULTIPLIED | | | |
|Caramel Croquette | 4 | " | BY CORRESP.| | | |
|Garlic Stick | 11 | " |[BATCH] | | | |
|=================================================================================================|