Mark Drelinger
asked on
Micrsoft Access Macro if Statement Syntax
In an Access 2010 Macro, I want to include an If Block to send email only if the record set is not null.
I am getting an error "The expression you entered has a function name that Microsoft Access can't find".
Screen shot attached.
C--Users-Drelinger.D179434-Desktop-C.JPG
I am getting an error "The expression you entered has a function name that Microsoft Access can't find".
Screen shot attached.
C--Users-Drelinger.D179434-Desktop-C.JPG
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Might be just where I'm placing it in the Macro.
Screen shot attached seems to work, so Thank you, Rey.
Still tinkering.
Mark
C--Users-Drelinger.D179434-Desktop-C.JPG
Screen shot attached seems to work, so Thank you, Rey.
Still tinkering.
Mark
C--Users-Drelinger.D179434-Desktop-C.JPG
ASKER
much appreciated. I Always learn from you, Rey. Thanks.
ASKER
; gave same error (can not parse).
This works:
DCount("*","qryExceptionLi stNewSales ")<>0
Thanks again.
This works:
DCount("*","qryExceptionLi
Thanks again.
ASKER
'IF dcount("*","qryExceptionLi