swapcode
May 17th, 2006, 12:59 AM
hi,
i m trying for a search criteria where user will enter anything in textbox and need to display the result in datagrid.
now problem is that i m using like query as
IF @ItemName <> ''
SET '(ITEMNAME LIKE ''' + @ItemName + '%'')'
but this is not filtering if user enters % in the text box and it displays all the values in the grid
Pls help me how to solve this issue.
i m trying for a search criteria where user will enter anything in textbox and need to display the result in datagrid.
now problem is that i m using like query as
IF @ItemName <> ''
SET '(ITEMNAME LIKE ''' + @ItemName + '%'')'
but this is not filtering if user enters % in the text box and it displays all the values in the grid
Pls help me how to solve this issue.