Null vs Empty

  • Thread starter Thread starter §Chrissi§
  • Start date Start date
§

§Chrissi§

Hi All,

Is Null and empty string the same in Access2003? I used IS NULL and ='' in
the WHERE clause. The result is the same. Thanks.

Chris
 
No. NULL is null; "" is empty string.

If you want to test for both conditions:
Is Null Or = ""
 
Thanks. Is there a way to store an empty string in a text field directly?

Chris
 
Yes, as long as the "Allow Zero Length String" property of the field is set
to Yes.
 
Assuming that the field allows empty strings, you can type
""
directly into a control bound to that field, or directly into the field when
the table is in datasheet view.

Or you can run an update query that will write "" into a field.
--

Ken Snell
<MS ACCESS MVP>
 

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

Back
Top