修改记录就用
rst.edit
rst.fields("xxx")=xxx
rst.update
rst.edit
rst.fields("xxx")=xxx
rst.update
解决方案 »
- 关于datagrid的一个问题
- 网站疯掉了!顺便送分
- vbscript调用excel后,不能退出excel进程。
- 我写了一个打印excel的dll,发现程序有时候调用dll时,程序在excel里不停死循环。挂上工程打印就没有问题,去掉就死循环,哪位知道原因?
- ado版本覆盖会产生何不良结果?
- 怎样将查询到的记录保存到一个文本文件中??
- 难到这就是爱吗,为什么爱一个人要这样做?
- 高分请高手帮忙 急!!!!!!!!!一个数据库连接问题
- VB的效率碰上大麻烦,新的问题又解决不了,我不会C,咋办
- 哪位VB高手回答我?关于调用开发包的函数?
- 怎样在vb中调用用c++builder作的.ocx,.dll文件
- 在CRYSTAL REPORT中如何打印动态生成的图象???????
ado就是去掉第一句吧
那位大虾赶快帮忙,一定给分
rst.Source = "select * from members where ...." '找出你要修改的记录
rst.ActiveConnection = cnn
rst.Open
rst.("field_name")=theValue
...
rst.update
就可以了
hehe
rst.Source = "select * from members where ...." '找出你要修改的记录
rst.ActiveConnection = cnn
rst.Open
while not rst.eof 1
rst.("field_name")=theValue
...
rst.update
rst.movenext
wend
你的方法是可行的,但是效率不高,有没有其他的方法
rst("field_name")=theValue
rst.Update
应该也行