Sunaj - I've tried the crude "SELECT * from MyTable Where Name like '%-t%'", con, adOpenStatic, adLockOptimistic
but still no records are returned ! Whereas you were succesful. Could it be anything to do with the setup?
I'm using ADO looking up an Acesss.mdb
Sunaj - I'm sorry about the ambiguity, but without trying to type in reams of tedious numbers I was trying to demonstrate that my code was unable to find the last letter(s) of the string whatever it is ie;
If QryString = "T01" 3 records are returned
= "-1903" 2...
Consider the following numbers :
M01T01-1903-0689-1
M01T01-1903-0689-2
M01T01-1906-0788-t
et al
If I use
SELECT * FROM Component Where TypRef LIKE '"& "%" & QryString & "%" '"
I can find any combination of letters or numbers except when the QryString =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.