case myoption.value=1
select 姓名,成绩 where 性别=“男” from 表名 into table mytable1
case myoption.value=2
select 姓名,成绩 where 性别=“女” from 表名 into table mytable2
endcase
t1=alltrim(thisform.text1.value)o1=thisform.optiongroup1.value
do case
case o1=1
sele * from 表名 where 姓名=t1 into cursor "temp"
thisform.grid1.recordsource="temp"
case o1=2
sele * from 表名 where 性别=t1 into cursor "temp"
thisform.grid1.recordsource="temp"
case o1=3
sele * from 表名 where 政治面貌=t1 into cursor "temp"
thisform.grid1.recordsource="temp"
endcase
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)