i am trying to do a substring search from an access 2010 database in winforms.
command.Parameters.AddWithValue("@searchTerm", searchTerm);
command.CommandText = "SELECT [OA_Name] FROM [Operating_Authority_Table] WHERE [OA_Name] = [@%searchTerm%]";
I tried to do a full string search and able to do just that, but I can’t get any successful searches when i change the term to be a substring.
am i implementing the wildcard character wrongly?
Try something like this: