查询 - 组合框 - 条件 select - MS Access
Query - ComboBox - criteria select - MS Access
我有以下数据(例子):
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 limited 中制作 ComboBox 下拉列表?也就是说,一旦我例如 select "MA_ID" 为 1,我希望能够 select 只有 1, 2, 3 为 MO_ID。例如,如果输入 "MA_ID" 2 值,MO_ID dropbox 组合框将仅提供选项 4 和 5 以 select 编辑为 MO_ID。
这叫做级联动作。搜索级联组合框或
检查这个:MS Access Forms : How to dynamically change the select options in a combo box?
或类似问题:
我有以下数据(例子):
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 limited 中制作 ComboBox 下拉列表?也就是说,一旦我例如 select "MA_ID" 为 1,我希望能够 select 只有 1, 2, 3 为 MO_ID。例如,如果输入 "MA_ID" 2 值,MO_ID dropbox 组合框将仅提供选项 4 和 5 以 select 编辑为 MO_ID。
这叫做级联动作。搜索级联组合框或 检查这个:MS Access Forms : How to dynamically change the select options in a combo box?
或类似问题: