[Webinar] Streamline your web hosting managementRegister Today


How to filter for multiple criteria

Posted on 2008-02-12
Medium Priority
Last Modified: 2008-09-01
How do I filter for multiple criteria in Access 2007? If you right click on a column, select text filter, how can you filter for multiple criteria? For example, I want to search for LastName = 'Jones' or LastName = 'Smith'.

Entering Smith works; entering 'Jones' or 'Smith' doesn't. This did work in Access 2003.
Question by:SteveBlevins
  • 2
LVL 18

Accepted Solution

Jinesh Kamdar earned 336 total points
ID: 20874842
How about this - LastName IN ('Jones', 'Smith')

Assisted Solution

ledwards earned 332 total points
ID: 20874879
On you toolbar you will have 3 filter options.  One of them is called Filter by Form.  If you click this you can add your selection as required.

To remove the filter you can use the right click "Remove Filter" option.
LVL 18

Expert Comment

by:Jinesh Kamdar
ID: 20874951
Can u post a snap-shot of ur Query Design view?
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 332 total points
ID: 20881365

Is this on all 2007 machines?

Is this in all databases opened with 2007?

Are you simply running the 2003 databases in Access 2007. Or did you convert them?
Conversely, are only the true Acc2007 format DB's having this issue?

MS has released service pack 1 for office 2007.
Install it, and see if the issue is fixed.
(Set a system restore point, and back up your system if possible, before installing the Service Pack.)

Also, Look into building a Multi-select list box.
This way you can just click the values, instead of typing them in. (and not worry about spelling errors in looooong "OR" statements)

Hope thjis helps as well


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

Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
Sometimes MS breaks things just for fun... In Access 2003, only the maximum allowable SQL string length could cause problems as you built a recordset. Now, when using string data in a WHERE clause, the 'identifier' maximum is 128 characters. So, …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

590 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