Administrator: Receipts Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

The IIF statement

The IIF() function is a logical statement, similar to the one used in Microsoft Excel. Here is the question in plain words:

 

If you subtract the video rental:

(Left([Description],1)

 

from the days rented

DateDiff("d",[DateRented],Now())

 

and that amount is greater than the days rented, then it's, “Overdue.”

 

If not, then it's, “Not Overdue.”

 

Save your query and test the results.

Home ->View ->Query Design