老师,这代码错哪里了?
If e.DataCol.Name = "报价" And (e.DataRow("任务类别") = "模具新开" Or e.DataRow("任务类别") = "模具维修") Then '发生变化的是产品列.
'则累计订单表中同名产品总的销售量,然后赋值给变动行的数量列
e.DataRow("试模费") = e.DataRow("报价") * 0.02
End If
If e.DataCol.Name = "报价" then
if e.DataRow("任务类别") = "模具新开" Orelse e.DataRow("任务类别") = "模具维修" Then
e.DataRow("试模费") = e.DataRow("报价") * 0.02
End If
End If