Microsoft Access Query help

How do I add "and availability is not null" to the bold line below

strFormCrit = Nz(Me.OpenArgs, "1")
    strCritBase = strFormCrit & " AND ImpoundCode IN('OCS', 'OCST','ACOS','ACOST')"
    strCritWithID = strCritBase & " AND  Availability > (ImpoundDate +7)"
    strCritNoID = strCritBase & " AND  Availability <= (ImpoundDate +7)"
J.R. SitmanIT DirectorAsked:
Who is Participating?
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.

Rey Obrero (Capricorn1)Commented:
strCritWithID = strCritBase & " AND  Availability Is not  Null AND  Availability > (ImpoundDate +7)"


or


strCritWithID = strCritBase & "   AND  Nz([Availability],#1/1/1900#) > (ImpoundDate +7)"
0
J.R. SitmanIT DirectorAuthor Commented:
My mistake,

What I need is "Give me all the animals where the Availability date is greater than 7 days past the impound date and also include those where the Availability date is null.
0
Rey Obrero (Capricorn1)Commented:
try this

strCritWithID = strCritBase & "  AND  (Availability > (ImpoundDate +7) Or Availability Is Null)"
0

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
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

J.R. SitmanIT DirectorAuthor Commented:
Getting an error.  See attached
error1.png
error2.png
0
J.R. SitmanIT DirectorAuthor Commented:
Never mind. It was missing the end )

Working
0
J.R. SitmanIT DirectorAuthor Commented:
Thanks
0
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.