Dim a As String With e.Form.Controls("combobox1") If .Value IsNot Nothing Then a = "姓名 = '" & .Value & "'" End If End With If a > "" Then dataTables("民兵数据库").Find (a) End If
2楼
czy 发表于:2009/8/7 16:24:00
你上面的代码本身就没给他其它动作? 你想让它怎么动作?
3楼
czy 发表于:2009/8/7 16:31:00
Dim a As String Dim dr As DataRow With e.Form.Controls("combobox1") If .Value IsNot Nothing Then a = "姓名 = '" & .Value & "'" End If End With If a > "" Then dr = dataTables("民兵数据库").Find(a) If dr IsNot Nothing Then '要执行的操作 End If End If