| 发表于:2007-04-02 17:59:07 楼主 |
我有两个表(dept)和(class),和一个窗体.窗体里面有两个控件(comboxbo1,comboxbo2) 表(dept)的字段(deptname)内容为记录一 "信息工程系 " 表(dept)的字段(deptname)内容为记录二 "化学工程系 " 表(class)的记录一字段(classdept)内容为 "信息工程系 "对应的字段(classname) "计算机0101 " 表(class)的记录二字段(classdept)内容为 "信息工程系 "对应的字段(classname) "网络0101 " 表(class)的记录三字段(classdept)内容为 "化学工程系 "对应的字段(classname) "分析0101 " 表(class)的记录四字段(classdept)内容为 "化学工程系 "对应的字段(classname) "精密0101 " 设置comboxbo1显示表(dept)的(deptname)字段内容. ------------------------------ 问: 我想comboxbo2的值随着comboxbo1的内容变动而变动. 如下: 我在comboxbo1里面选择 "信息工程系 "时,comboxbo2的内容就变成表(class)字段(classname)里面的内容: "计算机0101 "和 "网络0101 ". 当我选择comboxbo1里面选择 "化学工程系 "时,comboxbo2的内容就变成表(class)字段(classname)里面的内容: "分析0101 "和 "精密0101 " 谢谢了.如果不明白我再给大家解释. 我的邮箱是:520herenfeng@163.com qq:250519292 谢谢各位的帮忙. |
|
|
|
|