Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Difference

Status
Not open for further replies.

wanzek1

Technical User
Jun 13, 2012
79
US
I am using the following formula:

dateDiff("d", {APTH.udReceivedDate},Minimum ({APUR.DateAssigned}, {@APRef}))

Is there a way to get it to display something even if one of the values is blank or null? I know that note every invoice has a received date but I still want it to at least display 0 instead of nothing.

Thanks!
 
You could try this:
Code:
If IsNull({APTH.udReceivedDate}) then 0
else
dateDiff("d", {APTH.udReceivedDate},Minimum ({APUR.DateAssigned}, {@APRef}))


Bob Suruncle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top