What is the value in DateRented? Is it a date and time? If so, the comparison will fail because the time part will never match. You could try:DateDue = Int(DateAdd("d",2,[DateRented))which will force the result to the date part only.
Incidentally, your IIf statements must have a false part as...