Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expression problem

Status
Not open for further replies.

dpav29

Technical User
Aug 3, 2001
155
US
What's wrong with this expression?

"Mailed-MD/DO": Sum(IIf([providers!degree]="MD" Or [providers!degree]="DO" And [credentials]![MailDate] Is Not Null,1,0))

The MailDate is not null part isn't working. No errors, it is just being ignored. Any thoughts?
 
Here's what you want:

"Mailed-MD/DO": Sum(IIf([providers!degree]="MD" Or [providers!degree]="DO" And IsNull([credentials]![MailDate])=False,1,0))

In Access, use IsNull(Expression) instead of Expression Is Not Null.

-Jeff Burgess
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top