Access 2003 query to exclude entries in a particular column

Hey folks,

I need instruction on how to run a query wherein I can "exclude" entries from a particular column. I need to run a query to pull voters from an existing table, but, I need to exclude voters who have an apartment number (column heading: UnitNum).  I want instruction in simple terms (I'm no VB or Acess expert), no links to instructions in other Q&A's (I've already been searching and I don't want to just be redirected to other pages again).
primeradminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
SELECT *
FROM YourVoterTable
WHERE UnitNum IS NOT NULL

btw, voter fraud, I'm a witness.  I'm calling the ACLU.
0
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
>but, I need to exclude voters who have an apartment number (column heading: UnitNum).
{slight correction}

SELECT *
FROM YourVoterTable
WHERE UnitNum IS NULL
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TWBitCommented:
ha! :)

If the above SQL is too much (which you can paste into the SQL view of your query), then in Design View, add the UnitNum column and for the criteria, type in Is Null
0
GRayLCommented:
Exclude means if they have an apartment number don't show, or put another way - only show those which have an empty appt number.  That is done by:

SELECT * FROM Voters WHERE IsNull(UnitNum);




0
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Thanks for the grade.  Good luck with your project.  -Jim
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.