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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax error in sql statement 1

Status
Not open for further replies.

jadams0173

Technical User
Feb 18, 2005
1,210
Can someone help me with the syntax of this sql statement?

Code:
sqlNO36 = "SELECT SuperMKTLocID, SuperMktLoc" _
            & " FROM tblSuperMKTLoc " _
            & " WHERE (((SuperMktLoc) Not Like "wave supermkt"))

It says I have a missing operator in the where clause and I've also gotten expected end of statement with the word wave highlited.
 
sqlNO36 = "SELECT SuperMKTLocID, SuperMktLoc" _
& " FROM tblSuperMKTLoc " _
& " WHERE Not SuperMktLoc Like 'wave supermkt'"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
plus you'll need the LIKE operator in there somewhere:

sqlNO36 = "SELECT SuperMKTLocID, SuperMktLoc" _
& " FROM tblSuperMKTLoc " _
& " WHERE Not SuperMktLoc Like '*wave supermkt*'"

Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top