what will be the select query for excluding empty values in ms access

466 views Asked by At

I am trying

select * from table where Contact Is Not null 

but it is displaying values including empty values

2

There are 2 answers

1
Barry On BEST ANSWER

Your query is correct but probably you have zero length strings in your Contact column. You can use

select * from table where len(Nz(Contact, '')) > 0

The Nz function returns the specified default value if the column is null.

5
Rahul Tripathi On

You can try like this:

select * from table where Len([Contact] & "")>0