currentchanged 事件代码;
Dim ct As Table = e.Table
Dim name As String
For Each cl As Col In ct.Cols
If cl.name.Endswith("名称") Then
name = cl.name
Exit For
End If
Next
ct.DataTable.DeleteFor(name & " is null")
ct.DataTable.save
Forms("基本设置").Controls("增 加").Enabled = True
Forms("基本设置").Controls("修 改").enabled = True
Forms("基本设置").Controls("删 除").enabled = True
Forms("基本设置").Controls("保 存").enabled = False
Forms("基本设置").Controls("取 消").enabled = True
Forms("基本设置").Controls("导 出").enabled = True
Forms("基本设置").Controls("退 出").enabled = True