W
webXpeerience
I'm setting up a mail merge document which checks the dates in two fields and
if the difference is greater than or equal to 14, it then places a certain
statement into the document. I've tried to use DateDiff() directly but it
doesn't work. I tried creating a Function where the two fields are passed
ByVal to a function. Then within the function the DateDiff("D", sDate,
ThatDate) function is called and returns a yes or no value which would allow
the document to insert the appropriate statement. But how do I call the
function dynamically when the document merge is performed. I hope this is
clear. Can anybody help?.
if the difference is greater than or equal to 14, it then places a certain
statement into the document. I've tried to use DateDiff() directly but it
doesn't work. I tried creating a Function where the two fields are passed
ByVal to a function. Then within the function the DateDiff("D", sDate,
ThatDate) function is called and returns a yes or no value which would allow
the document to insert the appropriate statement. But how do I call the
function dynamically when the document merge is performed. I hope this is
clear. Can anybody help?.