表格属性
RecordSourceType=4
x=alltrim(thisform.text1.value)
thisform.grid1.recordsource="select 姓名,性别,籍贯,学院,专业,班级 ;
from xsxx ;
where alltrim(学号)== x ;
into cursor temp"
x=alltrim(thisform.text1.value)
select 姓名,性别,籍贯,学院,专业,班级 from xsxx where allt(学号)=x into cursor temp
thisform.grid1.RecordSourceType=1
thisform.grid1.RecordSource="temp"