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  

MS Access criteria HELP!!



 
 
Thread Tools Display Modes
  #1  
Old January 27th, 2005, 04:25 PM
dawnovan71
external usenet poster
 
Posts: n/a
Default MS Access criteria HELP!!

In Access, How can I set criteria to only choose records NOT containing a
certain word. I get that if I put "dog" in criteria it will show me all
records containing the word dog, but if what if I want all records not
containing the word dog, what do I type for criteria
  #2  
Old January 27th, 2005, 05:25 PM
Sandra Daigle
external usenet poster
 
Posts: n/a
Default

"dog"

--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.


dawnovan71 wrote:
In Access, How can I set criteria to only choose records NOT
containing a certain word. I get that if I put "dog" in criteria it
will show me all records containing the word dog, but if what if I
want all records not containing the word dog, what do I type for
criteria



  #3  
Old January 27th, 2005, 05:26 PM
fredg
external usenet poster
 
Posts: n/a
Default

On Thu, 27 Jan 2005 08:25:03 -0800, dawnovan71 wrote:

In Access, How can I set criteria to only choose records NOT containing a
certain word. I get that if I put "dog" in criteria it will show me all
records containing the word dog, but if what if I want all records not
containing the word dog, what do I type for criteria


Not Like "* dog *"

Note the spaces around the word dog. This prevents not getting words
that include dog, such as 'dogmatic'.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
  #4  
Old January 27th, 2005, 05:29 PM
Sandra Daigle
external usenet poster
 
Posts: n/a
Default

Oops, misread the question - you need to use the like statement:

Not Like "*dog*"

--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.


Sandra Daigle wrote:
"dog"


dawnovan71 wrote:
In Access, How can I set criteria to only choose records NOT
containing a certain word. I get that if I put "dog" in criteria it
will show me all records containing the word dog, but if what if I
want all records not containing the word dog, what do I type for
criteria



 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Error Message when opening database eah General Discussion 3 January 26th, 2005 10:04 AM
starting access 97 Edward Letendre General Discussion 2 January 26th, 2005 02:15 AM
Hiding Access Mark A. Sam Using Forms 4 December 1st, 2004 09:09 PM
Access 2000 -vs- Access 2003? Mark General Discussion 5 November 30th, 2004 06:36 AM
Access user profile Michael Breitsameter General Discussion 7 July 23rd, 2004 07:47 AM


All times are GMT +1. The time now is 01:48 PM.


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