I am trying to pass a value into an SQL statement to retrieve a result. The value I pass is from a varchar field and has a length of 12. The value I retrieve for a table for example is 3 . When I try and pass this value into my sql statement it gives me no results because the field is actually 12 characters in length but I am only passing the value of 3. When I assign the value ,3 , to a variable and get the length using the LEN command it shows 12 as the length but my sql statement is only seeing the value 3 instead of ' 3' . Any ideas on this??