Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search DataGridView by using ComboBox and TextBox

Status
Not open for further replies.

mjassalina

Programmer
Nov 29, 2020
19
PH
Hi, Can anyone give me a source code where I can filter/Search based on combobox (As table column) and textbox (As specific keyword)?


Thank you.
 
Could you show what have you tried so far?

---- Andy

"Hmm...they have the internet on computers now"--Homer Simpson
 

Dim cadena As String
cadena = InputBox("Enter the Title or topic of your interest, or just a word that you consider related." & vbCrLf & "We will search for matches with your entry within the database.", "Search by Title")
If Len(cadena) <= 1 Then
Adodc2.Refresh
DataGrid1.SelBookmarks.Add (DataGrid1.Bookmark)
Else
Adodc2.RecordSource = "Select * from tablaimagenes Where temas like '%" & cadena
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top