Query Criteria Not multiple fields with data (1 Viewer)

Ambrosia

New member
Local time
Today, 04:29
Joined
May 31, 2015
Messages
4
I'm creating a query from one table using two fields that require certain records to NOT bring up records that have the following text:
One table, two fields
First field ECO LifeCycle Status Criteria is Not "ERP UPDATE" or "CANCELLED"
Second field ECR LifeCycle Status Criteria is Not "COMPLETE"

When I put the Not Criteria in the first field only I get a result.
When I put the Not Criteria in both fields I get no results.

Does this make it clearer?
 
Last edited:

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 09:29
Joined
Jul 9, 2003
Messages
16,271
I think you probably need to add "Like" and a * for both parameters. As JHB says, A closer look would be helpful.
 

vbaInet

AWF VIP
Local time
Today, 09:29
Joined
Jan 22, 2010
Messages
26,374
Start with your first field, get it working then move on.
First field ECO LifeCycle Status Criteria is Not "ERP UPDATE" or "CANCELLED"
NOT "ERP UPDATE" OR "Cancelled" = It's not ERP_UPDATE but it can be "Cancelled".

So what you really want is one of the following:
Code:
NOT "ERP UPDATE" OR [COLOR="Blue"][B]NOT[/B][/COLOR] "Cancelled"

NOT IN("ERP UPDATE", "Cancelled")
 

Ambrosia

New member
Local time
Today, 04:29
Joined
May 31, 2015
Messages
4
Okay so that takes care of the first field of Criteria.

I also need to use another field to omit "COMPLETED" Not Like "COMPLETED"
Thank you for the And Not Like that works much better.

;)
 

vbaInet

AWF VIP
Local time
Today, 09:29
Joined
Jan 22, 2010
Messages
26,374
Well that's up to you, I don't know if you want an AND or an OR condition. So put the second criteria on the same line as the first and test it - that's an AND. If you don't get your desired results, move that second criteria to the OR row (i.e. the row below your first criteria) and test it - that's an OR.
 

Ambrosia

New member
Local time
Today, 04:29
Joined
May 31, 2015
Messages
4
The first two are in one field for criteria the second is in a different field.

Field one is Status Update ECO Not "ERP UPDATE" And Not "CANCELLED"
Field two is Status Update ECR Not "COMPLETED"

Two separate fields with criteria that isn't required in the query.

:eek:
 

vbaInet

AWF VIP
Local time
Today, 09:29
Joined
Jan 22, 2010
Messages
26,374
This is what I'm talking about. See attached.
 

Attachments

  • Query criteria.png
    Query criteria.png
    6.3 KB · Views: 125

Ambrosia

New member
Local time
Today, 04:29
Joined
May 31, 2015
Messages
4
Unfortunately, that doesn't work! I've put data in all fields with each type of data and nothing comes out for records. It looks sound but doesn't provide the output!
:(
 

Users who are viewing this thread

Top Bottom