比较简单的方法是:
1.在数据环境中添加要查询的表
2.把上面表的recordsoursetype属性设置为别名.recordsource属性设置为数据环境中的表
3.添加一个按钮,用来开始查询,按钮的程序为:
local x
x="学号='"+thisform.text1.value+' and 姓名='"+thisform.text2.value+"' and 班级='"+thisform.combo1.value+...
select yourtable
set filter to &x
thisform.grid1.refresh