Please help be build this condition in a query:
=IIF (Exp Date>Date()+30) Then StatusID=1
ElseIf (Exp Date<= Date()+30) Then StatusID=2
ElseIf (Exp Date<Date()) Then StatusID=3
Else StatusID=4
End If
If "Exp Date" is > Todays date + 30 days I want "StatusID" to = 1
If <= to todays date + 30 days then = 2
If < todays date then = 3
If not any of those than = 4
ANy Suggesstions?
=IIF (Exp Date>Date()+30) Then StatusID=1
ElseIf (Exp Date<= Date()+30) Then StatusID=2
ElseIf (Exp Date<Date()) Then StatusID=3
Else StatusID=4
End If
If "Exp Date" is > Todays date + 30 days I want "StatusID" to = 1
If <= to todays date + 30 days then = 2
If < todays date then = 3
If not any of those than = 4
ANy Suggesstions?