请教一下,我这个当r等于0了,dr1("核销") = True却不执行,
If
e.DataCol.Name = "未回数量" Then
Dim r As Integer
r=Tables("供应商订货总表").Current("未回数量") = DataTables("供应商订货明细表").Compute("sum(欠货数量)","piao号 = '" & Tables("供应商订货明细表").Current("piao号") & "'")
If r =0 Then
Dim dr1 As DataRow
dr1 = DataTables("供应商订货总表").Find("piao号 = '" & e.DataRow("piao号") & "'")
If dr1 IsNot Nothing Then
dr1("核销") = True
End If
End If
End If