Full Version: Brain Fart On Hump Day?
UtterAccess Discussion Forums > Microsoft® Access > Access Q and A
lkbree51
Hello and happy hump day

Where am I wrong on the below function? It is only showing the Inactive? ... iconfused.gif

Status: IIf(IsNull([DateRented]),"Active",IIf(Not IsNull([DateLeft]),"Inactive"))

Thanks
Larry

P.S. : Never mind...I found it.. Status: IIf(IsNull([DateLeft]),"Active",IIf(Not IsNull([DateLeft]),"Inactive"))

Thanks
ReyObrero
actually, since you are only testing for a single field and two conditions, you can simply use this


Status: IIf(IsNull([DateLeft]),"Active", "Inactive")
MiltonPurdy
Or you could simplify it:

IIF([dateleft]is null,"Active","Inactive")
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.