Donna:
Is the list of account types arbitrary or determined by some common
attribute? If the latter then you should have a column in an AccountTypes
table to hold the attribute values, or if each account can have multiple
attributes in another table related to the AccountTypes table via a table
modelling the many-to-many relationship. The query could then be restricted
on the value of the attribute in question.
With limited information you've provided its difficult to be more
categorical, but if you could post back with a description of the business
model in terms of the real world entities rather than the tables it would
probably be possible to give more specific advice.
If the list of desired exclusions is arbitrary then this could probably be
done by means of a NOT IN(<value list>) operation. The IN operator does not
allow parameters as its value list, only literal values, but you'll find
means of simulating it while using parameters at:
http://support.microsoft.com/kb/100131/en-us
Ken Sheridan
Stafford, England