Avatar of Ted Palmer
Ted PalmerFlag for United States of America asked on

How do I test for null condition of date datatype variables in MS-Access 2003

EE Experts,

I have the following 3 lines of code that give me an error message

     If Not (datShipDate Is Null) Then
                    !ShipDate = datShipDate
                End If

Open in new window


Run Time Error Message from VBA in MS-Access-2003
How can I test for a null value on a variable that is date datatype?
Microsoft Access

Avatar of undefined
Last Comment
Anders Ebro (Microsoft MVP)

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Anders Ebro (Microsoft MVP)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
Ted Palmer

Thank you Anders Ebro. That worked for just fine. I am embarassed to ask such a simple question. I found an answer in my wife's Alison Balter book that looked good, but yours was more complete and specific to my situation. I am a bit behind on this project so getting a quick answer was most helpful to me. Thank you.

Ted Palmer
ASKER
Ted Palmer

Thank you..!!
Anders Ebro (Microsoft MVP)

If its any comfort, switching back and forth between T-SQL and vba, I probably by accident (or because I am forgetfull) use the T-SQL syntax at least once a month, and then scratch my head until I remember my mistake.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23