We would like to add a row style to a Generic Inquiry where if the SOOrder.OrderDate within 3 days of shipping AND SOShipment.ShipDate <= 3 days from the SOOrderDate show the row as ‘green40’ else show as ‘red40’. Unfortunately using Is Between can’t be used for the row style.
Answer
Generic Inquiry Row Style
Best answer by lauraj46
Hi
Instead of ‘between’ you can just specify both conditions and combine with the ‘and’ operator, something like this:
=iif(datediff(‘d’, [SOOrder.OrderDate],[SOShipment.Shipdate])>=-3 and datediff(‘d’,[SOOrderDate],[SOShipment.Shipdate])<=3, ‘green40’,’red40’)
Hope this helps!
Laura
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.