>>请帮我改一下代码?<<
我想根据条件,在GRID显示合条件的记录??
thisform.GRid1.RecordSource =''
IF !USED('proinfo')
USE proinfo
ENDIF
select proinfo
inarea=ALLTRIM(thisform.text1.Value)
if proinfo.pro_agent != inarea
go top
messagebox('没有记录存在,请重请查找',48,'信息窗口')
thisform.GRid1.RecordSource='proinfo'
Thisform.text1.Value=''
Thisform.text1.SetFocus
else
thisform.GRid1.RecordSource='proinfo'
thisform.GRid1.refresh
endif
谢谢!