grid的问题
我在一个form里添加了一个grid是和一个表绑定在一起的,这个 form还有一些textbox,是一些要向grid添加数据的.确定以后,希望达到的效果是加了一条数据,
grid就可以多出这条数据,可是现在grid里并没有多出来,反而数据都没有了,希望高手帮忙解决,代码如下
set talk off
select tmp
append blank
replace 用途 with thisform.combo1.value
replace 金额 with val(thisform.text1.value)
replace 用途 with thisform.combo1.value
replace 日期 with ctod(thisform.text2.value)
replace 备注 with thisform.edit1.value
sum all 金额 to s
thisform.label7.caption=str(s)
thisform.grid1.refresh