Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"NOT IN" Statement Help - Wildcard

Status
Not open for further replies.

jaycast

Programmer
Nov 28, 2001
42
US
I have a table in SQL 7.0 that is maintained by an end user. Based on the values entered into a field in this table, I need to exclude records from a record set. Unfortunately, the user needs to be able to enter wildcards into this field.

For example, I'm looking to fulfill something like this:

Select * From tblCustomers
Where tblCustomers.SoldTo NOT IN ('LZB%')

It doesn't seem to be catching the criteria. Anyone have any suggestions of a work-around?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top