I have created a search form where users can serach the movie collection as per the genre.
Here query searchs for the records where Genre starts with the entered characters for testing purposes. Below is my query:
Now I want to do the below.
1. I want all the records having the entered characters anywhere in the genre not just in the starting to be displayed.
2. I want to create a option when user leases the filter "Genre blank" then all the records should be displayed, right now if left blank then no records is displayed.
Please guide
Rgards
Sudhir
Here query searchs for the records where Genre starts with the entered characters for testing purposes. Below is my query:
VB.NET:
SELECT Sl_No, Titles, MediaType, Genre, Brief_desc, Cost, Language, Rating, Starring, Disc_No, Current_Status
FROM CD_DVDCollection
WHERE (Genre LIKE @Genre + '%')
Now I want to do the below.
1. I want all the records having the entered characters anywhere in the genre not just in the starting to be displayed.
2. I want to create a option when user leases the filter "Genre blank" then all the records should be displayed, right now if left blank then no records is displayed.
Please guide
Rgards
Sudhir