代码贴错了,应是:
select cpxh,yhdw,sl;
from cpwxjl;
where year(fcrq)==thisform.text1.value;
into cursor yue
thisform.pageframe1.page1.grid1.recordsource='yue'
thisform.refresh
我是这样写的:
select cpxh,yhdw,sl;
from cpwxjl;
where year(fcrq)==thisform.combo2.value;
into cursor yue
thisform.pageframe1.page1.grid1.recordsource='yue'
thisform.refresh