I need to have a wild card in a where clause. I'm looking for part numbers that have a leading blank at the beginning of the field. (Most, not all; it's main frame data, and it's not going to change.) Currently, I have a SQL statement that ends with the following where:
..."WHERE ListPrice.PN like '" & strPartNo & "'"
I had = rather than like before I got the latest download. Changing to like still doesn't find the part. Using QBE, I can find it by entering a space (" 1234567") or if I add an asterisk ("*1234567). What do I need to do the change my existing where clause to be able to find the part number?
Thanks in advance,
Tom
..."WHERE ListPrice.PN like '" & strPartNo & "'"
I had = rather than like before I got the latest download. Changing to like still doesn't find the part. Using QBE, I can find it by entering a space (" 1234567") or if I add an asterisk ("*1234567). What do I need to do the change my existing where clause to be able to find the part number?
Thanks in advance,
Tom