PDS8475
Active member
- Joined
- Jun 25, 2019
- Messages
- 41
- Programming Experience
- Beginner
Hi
I have the following select statement
but this only finds results if the Value @Name is entered exactly like it is in the database. How can I change it so the user could enter paul or Paul and it would find the same result?
I'm sure this will of been answered before but I can only find information about the use of % and _ meaning a specific character of specific minimum length.
Thanks in advance
I have the following select statement
Cmd.CommandText = "Select EquipmentMake, EquipmentModel, EquipmentSerial FROM Repairs WHERE CustomerName like @Name";
but this only finds results if the Value @Name is entered exactly like it is in the database. How can I change it so the user could enter paul or Paul and it would find the same result?
I'm sure this will of been answered before but I can only find information about the use of % and _ meaning a specific character of specific minimum length.
Thanks in advance
Last edited: