Access Update Query on a Date Field

I have two tables, Table A has some of the date cells empty that I want to update from dates in Table B. When I indicate to update with criteria "Is Null" Access indicates that there are no cells to update. However, to test type match, when I indicate "Is Not Null" Access will update cells that already have a date in them - but this is not what I want. I need to have blank date fields updated.

Please advise,
exp vgAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dale FyeOwner, Developing Solutions LLCCommented:
Chances are that these "cells", which are actually "fields" in a database are not NULL, but are what is known in the database world as Zero Length Strings (ZLS). Instead of using:



WHERE TRIM([FieldName] & " ") = ""

When you append anything to a NULL, using an ampersand, the result is the second value, so you can then TRIM that value and it will be a ZLS.  If it was originally a ZLS, appending the space to it and trimming it also makes it a ZLS.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gustav BrockCIOCommented:
If the field is of data type Date, it can only hold either a date value or Null.

So modify the field from Text to Date.

exp vgAuthor Commented:
Thank you.
Dale FyeOwner, Developing Solutions LLCCommented:
glad to help
Gustav BrockCIOCommented:
You are welcome!

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.