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 like" query



 
 
Thread Tools Display Modes
  #1  
Old March 16th, 2006, 05:17 PM posted to microsoft.public.access.queries
external usenet poster
 
Posts: n/a
Default "not like" query

I need to filter a query with something on the order of:
not like "R*" and not like "T*" and not null
unfortunately, I believe there is no "not like" command in access other than
in ADP.

If I went the route of using , I would have to be explicit about each of
the 30 possibilities as the paramater does not accept a wildcard.

Suggestions?
  #2  
Old March 16th, 2006, 05:25 PM posted to microsoft.public.access.queries
external usenet poster
 
Posts: n/a
Default "not like" query


'Not Like' works just find in MDBs, Brad.

SELECT tblTest.TestText
FROM tblTest
WHERE (((tblTest.TestText) Not Like 'r*' And (tblTest.TestText) Not Like
't*' And (tblTest.TestText) Is Not Null);

--
Brendan Reynolds
Access MVP

"Brad Hotlz" Brad wrote in message
news
I need to filter a query with something on the order of:
not like "R*" and not like "T*" and not null
unfortunately, I believe there is no "not like" command in access other
than
in ADP.

If I went the route of using , I would have to be explicit about each of
the 30 possibilities as the paramater does not accept a wildcard.

Suggestions?


  #3  
Old March 16th, 2006, 06:03 PM posted to microsoft.public.access.queries
external usenet poster
 
Posts: n/a
Default "not like" query

"not like" does not work in a query

"Brendan Reynolds" wrote:


'Not Like' works just find in MDBs, Brad.

SELECT tblTest.TestText
FROM tblTest
WHERE (((tblTest.TestText) Not Like 'r*' And (tblTest.TestText) Not Like
't*' And (tblTest.TestText) Is Not Null);

--
Brendan Reynolds
Access MVP

"Brad Hotlz" Brad wrote in message
news
I need to filter a query with something on the order of:
not like "R*" and not like "T*" and not null
unfortunately, I believe there is no "not like" command in access other
than
in ADP.

If I went the route of using , I would have to be explicit about each of
the 30 possibilities as the paramater does not accept a wildcard.

Suggestions?




  #4  
Old March 16th, 2006, 06:07 PM posted to microsoft.public.access.queries
external usenet poster
 
Posts: n/a
Default "not like" query

My apologies - For some reason, which I have not yet figured out, the query I
was working on would not accept the "not Like" parameter. I created a new
query and it worked just fine.

Thank you.

"Brendan Reynolds" wrote:


'Not Like' works just find in MDBs, Brad.

SELECT tblTest.TestText
FROM tblTest
WHERE (((tblTest.TestText) Not Like 'r*' And (tblTest.TestText) Not Like
't*' And (tblTest.TestText) Is Not Null);

--
Brendan Reynolds
Access MVP

"Brad Hotlz" Brad wrote in message
news
I need to filter a query with something on the order of:
not like "R*" and not like "T*" and not null
unfortunately, I believe there is no "not like" command in access other
than
in ADP.

If I went the route of using , I would have to be explicit about each of
the 30 possibilities as the paramater does not accept a wildcard.

Suggestions?




 




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
Toolbars, Drop-Down Menus Rick New Users 1 September 21st, 2005 11:17 AM
SQL query showing diff between actual and budget Bon Running & Setting Up Queries 3 August 25th, 2005 12:07 PM
Nested in-line Query laura Running & Setting Up Queries 0 February 11th, 2005 12:17 AM
Big number gives error! Sara Mellen Running & Setting Up Queries 8 October 11th, 2004 02:48 AM
Too Few Parameters error Mail Merge Access Parameter Query Tony_VBACoder Mailmerge 3 September 14th, 2004 12:15 PM


All times are GMT +1. The time now is 07:41 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.