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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
"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
|
|||
|
|||
"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
|
|||
|
|||
"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
|
|||
|
|||
"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 | |
|
|