Programming for Everybody: Search in database access datagridview

Search in database access datagridview

search Query
SELECT        firstname, lastname, country, tel
FROM            Table1
WHERE        (firstname=?)
Like Query
SELECT        firstname, lastname, country, tel
FROM            Table1
WHERE        (firstname LIKE '%' + ? + '%')

ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
 Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
        Me.Table1TableAdapter.FillBy1(Me.AaDataSet1.Table1, TextBox5.Text)
     
    End Sub

No comments:

Post a Comment