PC Review


Reply
Thread Tools Rate Thread

I am trying to exclude pulling statuses into my query

 
 
Bonni Wilbourne
Guest
Posts: n/a
 
      23rd Jun 2008
Not In ("Completed"," Canceled")

I want to exclude the status of Completed and Canceled from my query. I
tried using different combinations of the above line, but it does not exclude
them.

Any suggestions would be most appreciated.
--
Bonni
 
Reply With Quote
 
 
 
 
John Spencer
Guest
Posts: n/a
 
      23rd Jun 2008
Post the entire SQL Statement you are trying to use.
(Hint: View: SQL from menu, copy and paste)

What you posted should work assuming that the field contains those values - if
the field is a look up field then what you see may very well be different than
what is actually stored in the field.

John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County

Bonni Wilbourne wrote:
> Not In ("Completed"," Canceled")
>
> I want to exclude the status of Completed and Canceled from my query. I
> tried using different combinations of the above line, but it does not exclude
> them.
>
> Any suggestions would be most appreciated.

 
Reply With Quote
 
Michel Walsh
Guest
Posts: n/a
 
      23rd Jun 2008
From what I understand:

SELECT *
FROM somewhere
WHERE process NOT IN( SELECT process
FROM somewhere
WHERE status IN("completed",
"canceled") )


to remove all process having one of their status equals to completed or to
canceled. I assume data like:

process dateTime status 'fields

1010 2001.01.01 open
.....
1010 2002.02.02 finding financing
....
1010 2002.03.03 canceled




Vanderghast, Access MVP



"Bonni Wilbourne" <(E-Mail Removed)> wrote in
message news:BB34844C-E60A-419B-8C27-(E-Mail Removed)...
> Not In ("Completed"," Canceled")
>
> I want to exclude the status of Completed and Canceled from my query. I
> tried using different combinations of the above line, but it does not
> exclude
> them.
>
> Any suggestions would be most appreciated.
> --
> Bonni



 
Reply With Quote
 
Jerry Whittle
Guest
Posts: n/a
 
      23rd Jun 2008
There's a space between the " and word Canceled. Could that be the problem?

If not, post the entire SQL statement.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Bonni Wilbourne" wrote:

> Not In ("Completed"," Canceled")
>
> I want to exclude the status of Completed and Canceled from my query. I
> tried using different combinations of the above line, but it does not exclude
> them.
>
> Any suggestions would be most appreciated.
> --
> Bonni

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting http statuses into access - The Boondock Saint Microsoft Access 10 6th Apr 2006 02:47 PM
Contact statuses not updating Andromache Windows XP Messenger 0 23rd Oct 2004 08:26 AM
GPRS statuses Antony Daugh Microsoft Dot NET Compact Framework 4 6th Apr 2004 09:46 PM
Outlook tasks statuses =?Utf-8?B?VG9ueSBDb2JhaW4=?= Microsoft Outlook Discussion 1 26th Feb 2004 07:30 PM
Exclude query Roland Microsoft Access Queries 3 15th Dec 2003 05:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:47 AM.