你一楼的代码,不止这个错误,还有逻辑问题,中间要退出循环才行:
Dim r As Row = Tables("人力资源库").Current
For Each cl As As Col In Tables("人力资源库").cols
If r.Isnull(cl.name) Then
Dim Result As DialogResult
Result = MessageBox.show("您有未填写的项目,确定放弃吗?","提示",MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If Result = DialogResult.Yes Then
r.Delete
Forms("人力资源界面主窗口").open()
forms("人力资源详细内容窗口").close()
Exit For
End If
End If
Next
[此贴子已经被作者于2015/4/14 15:26:19编辑过]