Dim db1 As WinForm.DropDownBox = e.Form.Controls("DropBox1")DataTables("客户档案").load()Dim dr As DataRowdr = DataTables("客户档案").Find("[客户名称]='" & db1.text &"'")If dr Is Nothing Then '如果找到的话 dr.DataTable.AddNew dr("客户名称")=db1.text dr.SaveEnd If
我这样写怎么不行呢?