Avatar of pdvsa
pdvsa
Flag for United States of America asked on

IsNotNull - in query design

Experts,

I am trying to modify the below query.  Access gives me an error of undefined function on the "IsNotNull".  I dont think I can use IsNotNull in the query.  Is there a work around or a better idea?  Please see bold    I also tried [ContractAward]<>"" but got a data type mismatch error.  Also note that the query worked fine until I added the IsNotNUll part so there is not a naming issue and if I take out the IsNotNull section then it works fine.

thank you.

MyGroup: IIf([tblStatus.Status] Like "*Awarded*" Or [tblStatus.Status] Like "Won*" Or IsNotNull([ContractAward],"Awarded",GetGroup([Projects.BidCloseDate],[Projects.ATTApprvDate],[Projects.ATCApprvDate],[Projects.ATSApprvDate],[Projects.ContractAward],[Projects.AnticipatePOSignDate],[Projects.CorpATTDate],[Projects.ExpectedContractAward])))


IsNotNull Error
Microsoft AccessSQL

Avatar of undefined
Last Comment
awking00

8/22/2022 - Mon
Jeffrey Coachman

Try:

Or Not IsNull([ContractAward])
Jeffrey Coachman

Or like this perhaps?

Or Not IsNull([ContractAward],"Awarded",GetGroup([Projects.BidCloseDate],[Projects.ATTApprvDate],[Projects.ATCApprvDate],[Projects.ATSApprvDate],[Projects.ContractAward],[Projects.AnticipatePOSignDate],[Projects.CorpATTDate],[Projects.ExpectedContractAward])))
ASKER CERTIFIED SOLUTION
awking00

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.
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
pdvsa

ASKER
False was the solution.  thank you.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Jeffrey Coachman

awking00
Good catch...
(I missed that aspect)...
;-)

Jeff
awking00

boag2000, thanks
and
pdvsa, you're welcome.