1.
Create a text box and command button, Command button on-click event should be set to save the value in the text box to a variable, say srchstr, and then generate a query with the following syntax:
"SELECT * " & _
"FROM Movies " & _
"WHERE Rating = '" & srchstr & "';"
2. Same thing but with the query as
"SELECT * " & _
"FROM Movies " & _
"WHERE Title LIKE '" & srchstr & "*';"
|