我在这里有一个用于搜索字符串的代码,并将数据显示到文本框和组合框,但是有一个小错误,任何人都可以帮助我修改代码
Dim sqlconn As New SqlClient.SqlConnection
sqlconn.ConnectionString = "server = SKPI-APPS1;" & _
"Database = EOEMS;integrated security=true"
sqlconn.open()
Dim dt As New DataTable
Dim ds As New DataSet
ds.Tables.Add(dt)
Dim da As New OleDbDataAdapter
da = New OleDbDataAdapter("Select * from tblOfficeEquipmentProfile where OE_ID like '%" & txtSearchOEID.Text & "%'", sqlconn)
da.Fill(dt)
此行带有蓝色下划线并显示错误“OVERLOAD RESOLUTION”
New OleDbDataAdapter("Select * from tblOfficeEquipmentProfile where OE_ID like '%" & txtSearchOEID.Text & "%'", sqlconn)
正如我所关心的,这是在数据网格上显示数据..但这次我想在文本框和组合框上显示数据