Dim s1 As String = e.Form.Controls("TextBox1").ValueDim tbl As WinForm.Tabletbl = e.Form.CreateSQLQuery("公共查询_Table1", "Select * From {定单明细} Where [品名] = ' " & s1 & " ' " ,"数据库")tbl.SetBounds(10, 80, 800, 100)e.Form.AddControl(tbl)
以上代码放在按钮中,完成了外部表 精确查询 的要求
问题: 想要实现模糊查询,代码需要怎么改
谢谢!!!