我有以下数据(示例):
tblModel
Mod_ID Mod_Num Mod_Desc
1 0001 Model01
2 0002 Model02
tblArticle
Art_ID Art_Num Art_Desc
1 001 Article X
2 002 Article Y
3 003 Article Z
4 004 Article K
tblOperation
Op_ID Op_Num Op_Desc
1 01 Gluing
2 02 Sewing
3 03 Stitching
tblMaterial
Mat_ID Mat_Num Mat_Desc
1 B001 Blue
2 R001 Red
3 K001 Black
数据结构如下:
tblModelArticle
MA_ID Mod_ID Art_ID MA_Description
1 1 1 Model01 - Article X
2 1 2 Model01 - Article Y
3 2 3 Model02 - Article Z
4 2 4 Model02 - Article K
tblModelOperation
MO_ID Mod_ID Op_ID MO_Description
1 1 1 Model01 - Op Gluing
2 1 2 Model01 - Op Sewing
3 1 3 Model01 - Op Stitching
4 2 1 Model02 - Op Gluing
5 2 3 Model02 - Op Stitching
tblArticleOperationMaterial
AOM_ID MA_ID MO_ID Mat_ID AOM_Description
1 1 3 1 Model01 - Article X - Operation Stitching - Material Blue
2 2 3 2 Model01 - Article Y - Operation Stitching - Material Red
3 3 5 2 Model02 - Article Z - Operation Stitching - Material Red
4 4 5 3 Model02 - Article K - Operation Stitching - Material Black
我的问题是:如何在tblArticleOperationMaterial限制中创建一个ComboBox下拉列表?也就是说,一旦我例如选择“MA_ID”为1,我希望能够仅选择1,2,3作为MO_ID。例如,如果输入了“MA_ID”2值,则MO_ID dropbox combox框将仅提供4和5的选项作为MO_ID。
答案 0 :(得分:2)