Andrew, you didn't specify which database platform you're using. Peter's
example will work fine with VFP, but in the off chance you're using
another SQL platform, they typically use the 'IN' or 'NOT IN' clause.
SELECT ... WHERE compno NOT IN ('Comp2','Comp4','Comp99')
HTH.
On 04/16/2014 11:17 AM, Peter Cushing wrote:
Andrew Stirling wrote:
Hi
I have a table with a column compno which has
Comp1
Comp2
Comp3
etc
I have got a string, tempexclude with 'Comp2,Comp4,Comp99' in it.
How do I get a SELECT to exclude the string values?
select ... where !(compno $ mystring)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.