Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Posted: 13 Aug 2010 at 3:17am
if isnull ({SOP_ITEM.DUE_DATE}) then
{SALES_ORDER.DESPATCH_DATE} else
IF DATEDIFF("d", {SOP_ITEM.DUE_DATE}, {SALES_ORDER.DESPATCH_DATE}) > 0 THEN
{SALES_ORDER.DESPATCH_DATE} else
{SOP_ITEM.DUE_DATE}
just double check the syntax for the datediff function and the order the parameters...the syntax is slightly different than SQL (where I do most of my work) and the order I can never keep straight.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum