在ListView中,对打勾记录的check项,通过遍历修改数据库相应字段的记录,(同步修改记录内容更好).目的:是用Select语句,选择相应的记录内容。
select * from table where Check_Select = -1dim nodx as node
for each nodx in tredir.nodex
if tvwDb.check.value = True
'更改数据库Check_Select
Check_Select = -1
End If
next
目标:
select * from table where Check_Select = -1
select * from table where Check_Select = -1dim nodx as node
for each nodx in tredir.nodex
if tvwDb.check.value = True
'更改数据库Check_Select
Check_Select = -1
End If
next
目标:
select * from table where Check_Select = -1
解决方案 »
- 帮忙看看数组下标越界问题
- 向高手求教三个问题的代码
- 年薪30万的题!
- 庆祝小猪妹XX岁生日
- 请问rs.addnew,rs.fileds("")=""是什么意思?本人是个初学者实在不好意思了,
- 请赐教 为什么用datagrid显示记录时,其结果总是第一行第一列是空白?
- 如何从smalldatetime字段中分别取出年,月,日?年月日都必须有两位(不足两位,前补0)
- 稍复杂的一个数据库搜索问题。
- 实现findpic
- 如何侦错? ---- 实时错误 '-2147217887(80040e21)多步OLE DB操作产生错误。请检查每个OLE DB状态值,没有工作被完成。
- 请问如何建立新文件夹
- 重装sql后,数据库连接出错!急!在线等!
for each nodx in tredir.nodex
if tvwDb.check.value = True
'更改数据库Check_Select
cn.execture "update table set Check_Select=-1 where id=當前選中的ID"
Check_Select = -1
End If
next-------
www.vicmiao.com
努力就有美好時光!
试用了一下,有个问题是tvwDb.check.value,运行出错
提示编译出错,未找到方法和数据成员.
请指教!