Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / February 2008

Tip: Looking for answers? Try searching our database.

Exclusion with an exception?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Erica - 06 Feb 2008 14:52 GMT
I have filtered a query to exclude a particular product, however, I have been
asked to make an exception based on a customer name.  I tried an IIF
statement, but I get the "too complex" error.  Anyone know how to achieve
this feat?
KARL DEWEY - 06 Feb 2008 15:38 GMT
Try this ---
  Like IIF([CustomerName] = "Joe Smith", "*", Null)  OR  <>"Brand X"

Signature

KARL DEWEY
Build a little - Test a little

> I have filtered a query to exclude a particular product, however, I have been
> asked to make an exception based on a customer name.  I tried an IIF
> statement, but I get the "too complex" error.  Anyone know how to achieve
> this feat?
John Spencer - 06 Feb 2008 16:41 GMT
Why not

WHERE CustomerName = "Joe Smith" Or Brand <> "Brand X"

Signature

John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
.

> Try this ---
>   Like IIF([CustomerName] = "Joe Smith", "*", Null)  OR  <>"Brand X"
[quoted text clipped - 4 lines]
>> statement, but I get the "too complex" error.  Anyone know how to achieve
>> this feat?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.