Dim Txt As String = Forms("窗口2").Controls("TextBox1").Value Dim dr As DataRow = DataTables("表名").Find("列名=\'" & Txt & "\'") If dr IsNot Nothing Then MessageBox.Show("找到") End If
-- 作者:czy
-- 发布时间:2012/1/13 18:36:00
--
Dim Txt As String = Forms("窗口2").Controls("TextBox1").Value Dim dr As DataRow = DataTables("表名").Find("列名=\'" & Txt & "\'") If dr IsNot Nothing Then e.Form.Controls("Label1").text = dr("姓名")