Solved

Query criteria

Posted on 2014-07-30
3
175 Views
Last Modified: 2014-07-30
I have a table that has the following values one per record

FD30, FD30S, None, FD60, FD60S, FD120 and FD120S

In a query I want to filter out the records with an "S" on the end leaving

FD30, None, FD60,  and FD120
0
Comment
Question by:DatabaseDek
3 Comments
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 40228865
HI

Maybe

SELECT Table1.[Field]
WHERE (((Table1.[Field]) Not Like "*FD##S*" And (Table1.[Field]) Not Like "*FD###S*"));

Regards
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 40228871
select * from tablex
where [field] not like "*S"
0
 

Author Closing Comment

by:DatabaseDek
ID: 40228878
Nice, simple. Thank you
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question