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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Does not contain" on a Text Field



 
 
Thread Tools Display Modes
  #1  
Old December 18th, 2008, 09:05 PM posted to microsoft.public.access.gettingstarted
Darrell
external usenet poster
 
Posts: 70
Default "Does not contain" on a Text Field

How do I filter a text field in a table so that my list "does not contain" a
key word? I am not sure how the expression should look and my attempts at
researching a solution have failed. Can I filter on a keyword or does it have
to be an exect match? i.e. I want to eliminate all records that contain the
word "Administrative"

[dbo_MSP_EpmTask]![TaskName] «Expr» Not "Administrative" ?

Darrell
  #2  
Old December 18th, 2008, 09:13 PM posted to microsoft.public.access.gettingstarted
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default "Does not contain" on a Text Field

If it's an exact match, use

[dbo_MSP_EpmTask]![TaskName] "Administrative"

If it's not an exact match, use

[dbo_MSP_EpmTask]![TaskName] NOT LIKE "*Administrative*"


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Darrell" wrote in message
...
How do I filter a text field in a table so that my list "does not contain"
a
key word? I am not sure how the expression should look and my attempts at
researching a solution have failed. Can I filter on a keyword or does it
have
to be an exect match? i.e. I want to eliminate all records that contain
the
word "Administrative"

[dbo_MSP_EpmTask]![TaskName] «Expr» Not "Administrative" ?

Darrell



  #3  
Old December 18th, 2008, 09:41 PM posted to microsoft.public.access.gettingstarted
Darrell
external usenet poster
 
Posts: 70
Default "Does not contain" on a Text Field

Douglas,

Thx... I was using "%Administrative%" and getting nowhere!

Darrell

"Douglas J. Steele" wrote:

If it's an exact match, use

[dbo_MSP_EpmTask]![TaskName] "Administrative"

If it's not an exact match, use

[dbo_MSP_EpmTask]![TaskName] NOT LIKE "*Administrative*"


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Darrell" wrote in message
...
How do I filter a text field in a table so that my list "does not contain"
a
key word? I am not sure how the expression should look and my attempts at
researching a solution have failed. Can I filter on a keyword or does it
have
to be an exect match? i.e. I want to eliminate all records that contain
the
word "Administrative"

[dbo_MSP_EpmTask]![TaskName] «Expr» Not "Administrative" ?

Darrell




  #4  
Old December 18th, 2008, 10:48 PM posted to microsoft.public.access.gettingstarted
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default "Does not contain" on a Text Field

Working inside Access, the "*" wildcard means "any characters or none".

SQL-Server uses "%" to do the same.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Darrell" wrote in message
news
Douglas,

Thx... I was using "%Administrative%" and getting nowhere!

Darrell

"Douglas J. Steele" wrote:

If it's an exact match, use

[dbo_MSP_EpmTask]![TaskName] "Administrative"

If it's not an exact match, use

[dbo_MSP_EpmTask]![TaskName] NOT LIKE "*Administrative*"


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Darrell" wrote in message
...
How do I filter a text field in a table so that my list "does not
contain"
a
key word? I am not sure how the expression should look and my attempts
at
researching a solution have failed. Can I filter on a keyword or does
it
have
to be an exect match? i.e. I want to eliminate all records that contain
the
word "Administrative"

[dbo_MSP_EpmTask]![TaskName] «Expr» Not "Administrative" ?

Darrell






 




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 12:51 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.