If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Query critieria to exclude 2 words
Hello,
I have a query that I want to run to pull data, but I want it to exclude "Complete" and "Approved" in the Status field, and return everything else except those 2 words. I have tried several different ways to do it, but I can only get it to exclude one or the other. I'm using this right now: Not Like "Complete" AND "Approved" This only gives me Approved, which I don't want. Please help! -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...eries/200911/1 |
#2
|
|||
|
|||
Query critieria to exclude 2 words
I believe you want those records that don't have "Complete" and those that
don't have "Approved" First, if the ONLY value stored in that status field is a single word (e.g., "Complete", "Approved", ... ?"Pending", ...), you do not need to use the "Like" condition. You could use something similar to (untested): Not "Complete" and Not "Approved" You are leaving out the "not" for the second condition. Regards Jeff Boyce Microsoft Access MVP -- Disclaimer: This author may have received products and services mentioned in this post. Mention and/or description of a product or service herein does not constitute endorsement thereof. Any code or pseudocode included in this post is offered "as is", with no guarantee as to suitability. You can thank the FTC of the USA for making this disclaimer possible/necessary. "Pasadena-D via AccessMonster.com" u56499@uwe wrote in message news:9fe8bb0a7d6bc@uwe... Hello, I have a query that I want to run to pull data, but I want it to exclude "Complete" and "Approved" in the Status field, and return everything else except those 2 words. I have tried several different ways to do it, but I can only get it to exclude one or the other. I'm using this right now: Not Like "Complete" AND "Approved" This only gives me Approved, which I don't want. Please help! -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...eries/200911/1 |
#3
|
|||
|
|||
Query critieria to exclude 2 words
Jeff,
It works great! Thanks for your help. Jeff Boyce wrote: I believe you want those records that don't have "Complete" and those that don't have "Approved" First, if the ONLY value stored in that status field is a single word (e.g., "Complete", "Approved", ... ?"Pending", ...), you do not need to use the "Like" condition. You could use something similar to (untested): Not "Complete" and Not "Approved" You are leaving out the "not" for the second condition. Regards Jeff Boyce Microsoft Access MVP Hello, [quoted text clipped - 7 lines] This only gives me Approved, which I don't want. Please help! -- Message posted via http://www.accessmonster.com |
Thread Tools | |
Display Modes | |
|
|