错误提示:Insufficient or incrrect key colum information:too many rows affected by update
编号:QA003152
建立日期: 2000年7月16日 最后修改日期:2000年7月16日
所属类别:
Xxp:
操作系统:win98&nt
编程工具:Vb
问题:错误提示:
Insufficient or incrrect key colum information:
too many rows affected by update.
recordset中的设置:
With rst
.ActiveConnection = cnn
.CursorLocation = adUseClient
.CursorType = adOpenKeyset
.LockType = adLockOptimistic
.Open "select * from sf"
.Fields("tm").Value = "aa"
.update
end with
水平: 刚入门
回答:
With rst
.ActiveConnection = cnn
.CursorLocation = adUseClient
.CursorType = adOpenKeyset
.LockType = adLockOptimistic
.Open "select * from sf"
do until .eof
.Fields("tm").Value = "aa"
.update
.movenext
loop
end with
gxc的意见:
我只知道一种答案,该字段是其它表的外键或是该表内的外键。
此问题由lz回答。
| |
|
|
| |
|
|