VF在表单中如何更新数据库中数据
这个表调用 的表名是 biaojilu
表结构 是:
ID (序号) zbm (组编码) nian (年) yue(月) jishu(上月底表数)
dbshu(本月抄表数) feilv(费率就是 元/度) jine (应交多少钱)
在每次运行的时候 上月度数 自动算出来
要匹配的 自段 zbm nian yue 图片http://www.aprx.com.cn/vf.jpg
现在上月度数我已经使用语句 查出来了
句子:
use
use d:\hbdf\biaojilu
Local jishu1,lmonth,lzbm,jishu2
lyear = thisform.nian1.value
lmonth = thisform.yue1.value
lzbm = thisform.zbm1.value
Locate For nian = lyear .And. yue = (lmonth-1) .And. zbm = lzbm
*If Found()
* jishu2 =dbshu
*Endif
* =
thisform.text3.value = dbshu
* ? jishu2
*下面是想用text3.value 更新库中的数据现在更新不了
replace jishu with thisform.text3.value
拜托大家给指点一下

