求助,加入当前表 地理 已存在当前项目编号,且 国家列值 不为空 或 值不等于 要更新项目名称,就录入 国家列值为 要更新项目名称
下面代码怎么修改,求助
Dim dr As DataRow = e.DataRowSelect Case e.DataCol.name
Case "项目编码","国家"
If e.DataRow.IsNull("项目编码") = False Then
Dim fdr As DataRow = DataTables("地理").Find("项目编码 = '" & e.DataRow("项目编码") & "'" And 国家 <> "要更新项目名称" And 国家 <> " ")
dr("国家") = "要更新项目名称"
End If
End Select