hi friends..
i want to search a record from a datagridview with an testbox...
Can anyone help me plz...
thanxs in advanse

connect the database and data grid. then write this code

Private Sub Text1_Change()
Set rs = Adodc1.Recordset
With rs
        .Close
        .Source = "select * from TableB where TITLE like '%" & Text1.Text & "%'"
        .Open
End With
    DataGrid1.ReBind
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.