I see a couple of problems...
Code:
=IIf(DCount("*","[Tasks - DC]","[Update Date] < Date() + 2")>0 & DCount("*","[Tasks - DC]","[Status]")="In Progress","DC Updates Due","")
* You are using the concatenation operator instead of the comparison operator "AND".
Looking at the two parts of the condition part of the IIF() function, the first one is OK:
Code:
DCount("*","[Tasks - DC]","[Update Date] < Date() + 2")>0
but the second one is wrong:
Code:
DCount("*","[Tasks - DC]","[Status]")="In Progress"
*The closing parenthesis is in the wrong place
*There should be single quotes (or doubled double quotes) around "In Progress"
* Shouldn't the result be compared to zero like the first condition??
Code:
DCount("*","[Tasks - DC]","[Status] = 'In Progress'")>0
So your formula should be like this:
Code:
=IIf(DCount("*","[Tasks - DC]","[Update Date] < Date() + 2")>0 & DCount("*","[Tasks - DC]","[Status] = 'In Progress'")>0,"DC Updates Due","")
So, if the first DCount() >0 AND the second DCount() >0, then use "DC Updates Due" else use ""
As an aside, you shouldn't have spaces or use special characters in your object names.
[Tasks - DC] should be something like [TasksDC] or [Tasks_DC]
[Update Date] should be something like [UpdateDate] or [Update_Date]
Only the programmer should ever see the object names, so 'proper' usage of spaces between words doesn't matter.
(Also see http://mvps.org/access/tencommandments.htm
)