Using a filter to exclude records from a table

S

Shane

I am new to access. I need to apply a filter to my table
that will exclude records that do not have an entry
in "field1" or "field2". In other words if "field1" is
blank and "field2" is blank do not display.
 
D

Douglas J. Steele

Or, since Shane said "if 'field1' is blank and 'field2' is blank do not
display."


SELECT *
FROM TableName
WHERE field1 Is Null AND field2 Is Null
 
T

Tim Ferguson

Or, since Shane said "if 'field1' is blank and 'field2' is blank do not
display."
(ahem...)

SELECT *
FROM TableName
WHERE NOT ( field1 Is Null AND field2 Is Null )



B Wishes


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top