Forum Discussion

RoulaHabbal's avatar
RoulaHabbal
Qrew Cadet
7 months ago

When the Expiration Date is On or Before Today, Change the Contract Status to Expired

Hello: I have a contract application. Goal: When the Contract Expiration Date field is on or before today, and the Exception to the Expiration Date Dynamic Form Rule field is unchecked, I want the ...
  • MariaPeralta's avatar
    MariaPeralta
    7 months ago

    Hi Roula, 

    Thanks for the clarification. Whenever you're reading the logic of a QB formula you should replace the commas with the words "then" and "otherwise". If you do this the formula will read more or less like a sentence. 

    If we do this, then your formula, line by line, reads like this:

    The first comma is always "then" and any comma after that becomes an "otherwise". So the following formula should work. Apologies for using all caps in my last formula, old habits die hard.

     If([Contract Status] = "Active" and [Contract Expiration Date]>=Today(), 
    "Expired")

    I hope this helps!!

    -Maria