Solved

Query criteria

Posted on 2014-07-30
3
172 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 48

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 119

Accepted Solution

by:
Rey Obrero 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now