D
Darryn Ross
Hi,
I am trying to execute a SQL statement that has the 'LIKE' condition in it,
i am reading from a access 2002 database and when i build my statement i am
trying to include the '%' wildcard and it's not picking it up.... my select
statement is as follows....
SqlSelect = "Select * From tbl Where Code LIKE " + "'%" + txtcode.Text +
"%'" ;
after the line is executed the percent characters are missing??? am i using
the wrong syntax?? i am pretty sure this is the way it's done...
Regards
Darryn
I am trying to execute a SQL statement that has the 'LIKE' condition in it,
i am reading from a access 2002 database and when i build my statement i am
trying to include the '%' wildcard and it's not picking it up.... my select
statement is as follows....
SqlSelect = "Select * From tbl Where Code LIKE " + "'%" + txtcode.Text +
"%'" ;
after the line is executed the percent characters are missing??? am i using
the wrong syntax?? i am pretty sure this is the way it's done...
Regards
Darryn