monkeylizard
MIS
Can I make a formula return a Null?
The dates are comparing some customer service response times. A Value of 0 indicates a same-day contact, which is good. If Date1 is null in the DB, then the customer has never been contacted and I should not be reporting a 0. I need a Null here.
Can this be done?
Monkeylizard
Sometimes just a few hours of trial and error debugging can save minutes of reading manuals.
Code:
If NOT IsNull ({Date1})
and ({Date1}>= Date2})
and {Date1} <> DateTime (1900, 01, 01,00, 00, 00)
Then
({Date1}-{Date2})
else
<<NULL>> <-- I want to make it return a Null here
The dates are comparing some customer service response times. A Value of 0 indicates a same-day contact, which is good. If Date1 is null in the DB, then the customer has never been contacted and I should not be reporting a 0. I need a Null here.
Can this be done?
Monkeylizard
Sometimes just a few hours of trial and error debugging can save minutes of reading manuals.