A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Not statement not working



 
 
Thread Tools Display Modes
  #1  
Old November 26th, 2009, 12:41 PM posted to microsoft.public.access.queries
jerry001 via AccessMonster.com
external usenet poster
 
Posts: 7
Default Not statement not working

I went through the forum but couldn't find an answer to that

ok

so I need a query that gives all records that don't have a set of values in a
field.

i.e. lets say Field "TOP" should not be 10 or 20 or 30 or 40 .....

I tried a multiple or Not query but it does not work.

Can someone spell it out for me?

thanx

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200911/1

  #2  
Old November 26th, 2009, 02:03 PM posted to microsoft.public.access.queries
vanderghast
external usenet poster
 
Posts: 593
Default Not statement not working

[top] NOT IN(10, 20, 30, 40)

or, if you mean multiple of 10

0 [top] MOD 10




Note that TOP is a reserved word (SELECT TOP 100 ... ), so it is highly
preferable to use [ ] around it to indicate that you mean the field of that
name.



Vanderghast, Access MVP



"jerry001 via AccessMonster.com" u48786@uwe wrote in message
news:9fb0fee3f2273@uwe...
I went through the forum but couldn't find an answer to that

ok

so I need a query that gives all records that don't have a set of values
in a
field.

i.e. lets say Field "TOP" should not be 10 or 20 or 30 or 40 .....

I tried a multiple or Not query but it does not work.

Can someone spell it out for me?

thanx

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200911/1


  #3  
Old November 27th, 2009, 01:20 PM posted to microsoft.public.access.queries
jerry001 via AccessMonster.com
external usenet poster
 
Posts: 7
Default Not statement not working

thank you
it worked perfectly

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200911/1

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.