thisform.grid1.recordsource=''
use cbzxwh **cbzxwh为远程视图文件
insert into cbzxwh (cbzxdm,cbzxmc,cbzxzt) values (allt(thisform.text1.value),allt(thisform.text2.value),ztxzjg)
if used('cbzxwh')
use in cbzxwh
endif
sele recno(),cbzxdm,cbzxmc,cbzxzt from cbzxwh into cursor lswj1
if used('cbzxwh')
use in cbzxwh
endif
go bottom
thisform.grid1.recordsource='lswj1'