Do not want to see blank fields

  • Thread starter Thread starter cntdavis
  • Start date Start date
C

cntdavis

Guest
I'm trying to make a query for a table that some of the records are blank under certain field names. Can I make a parameter query that does not return the blank field names at all?
 
I tried that and the query returned no records at all. Is that because there are multiple field names? Doesn't that make it an AND statement?
 
You cannot use criteria to alter the columns that are selected by a query. The criteria controls the selection of rows. If what you want to do is to eliminate rows where ALL columns are null, the criteria should look something like:

Where Not (FldA Is Null AND FldB Is Null AND FldC Is Null);

Formulating compound conditions that include the NOT operator can be tricky.
 

Users who are viewing this thread

Back
Top Bottom