I have a linked table I am attempting to filter data out of. One of my field has several acronyms and I am looking only for 1 specificly "XTL" When I use the like "XTL" in the criteria field it is not filtering out all the other acrynyms in actuallity it is doing nothing at all. This table is a linked ODCB connection will this affect filtering using the like statement?
Like Criteria is not filtering like it's supposed to be
Collapse
X
-
Ron, Your question is particularly unclear. You say you are looking for the value 'XTL' yet you say you are using the Like construct. You have also not posted any SQL at all, which may have given us a chance to work out what your question should have been.
If you are looking for values of precisely 'XTL' then simply use = in your WHERE clause. If you are looking for any value with 'XTL' embedded within it then use '*XTL*' in most cases, but '%XTL%' if you have ANSI-92 compatibility set in your database options.
If you continue to have problems then please post your existing SQL and explain clearly what is going wrong.Comment
-
Not entirely true. The * is simply an older standard that MS still support, but they do provide the option of compatibility with the later standard (%). The quotes issue is MS as far as I've been able to tell. It's more about making it nooby-friendly than any desire to trip up standards though. Frustrating at times, but there is actually solid reasoning behind it, whether we agree with that reasoning or not. See ANSI Standards in String Comparisons for more on this.Originally posted by ColintisColintis:
This is the M$ standard...i hate to say this b'cause M$ change alot of SQL standard function characters to another things we need to discover....Comment
Comment