Dim db1 As WinForm.DropDownBox = e.Form.Controls("DropBox1") DataTables("客户档案").load() Dim dr As DataRow dr = DataTables("客户档案").Find("[客户名称]='" & db1.text &"'") If dr Is Nothing Then
msgbox("没找到 " & db1.text) dr = DataTables("客户档案").AddNew dr("客户名称")=db1.text dr.Save