是否符合要求_是 起初是 false ,改成 true 后,代码正常运行,再次改成false ,改为true 时,就会出现这个问题,
If e.DataCol.Name = "是否符合要求_是"
If e.DataRow("是否符合要求_是" ) = True Then
Dim cmd,cmd1,cmd2 As New SQLCommand
cmd.C
cmd1.C
cmd2.C
cmd.commandtext = "select count ([_Identify]) from {a} where [编号] = '" & dr("编号") & "' And [分组] <> '格式' and ([是否符合要求_是] = 1 or [是否符合要求_否] = 1 ) "
Dim xms As Double = cmd.ExecuteScalar() '
cmd1.commandtext = "update {b} set [进度] = " & xms & " where [编号] = '" & dr("编号") & "'"
Dim c1 As Integer = cmd1.ExecuteNonQuery()
cmd2.commandtext = "update {b} set [状态] = '审核' where [项目数] = " & xms & " "
Dim c2 As Integer = cmd2.ExecuteNonQuery()
[此贴子已经被作者于2014-2-1 20:44:12编辑过]