Full Version: Selecting a record that is not null or spaces
UtterAccess Discussion Forums > Microsoft® Access > Access Queries
rdemyan
How do I select a record(s) from a table that are not Null or spaces.

Maybe:

......Where Field1 Is Not Null Or Field1 <> ''

Thanks
suntisuka
If your field contain space (I mean one space, 2 spaces, ...), you can use

where NZ(trim(Field1),"") <> ""

But if your space mean Zero Length String, you can use shorter form

where NZ(Field1,"") <> ""

HTH
rdemyan
Works fine. Thank you.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.