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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with a formula - ELSE throws error 1

Status
Not open for further replies.

cyreports

Programmer
May 12, 2010
89
US
I need to have this report "" as my value versus '0' as it is currently. I tried to add in an ELSE "" and it threw an error telling me a number was reqd. Not quite sure what I need to change this to.

Code:
If {Claims_txt.OrthodonticPlacementDate} <> #01/01/1800# and {Claims_txt.OrthodonticCompletionDate} <> #01/01/1800# then
DateDiff ("m",{Claims_txt.OrthodonticPlacementDate} ,{Claims_txt.OrthodonticCompletionDate} )
 
Hi,
All results from a formula must be of the same datatype, so your "" ( a string, albeit blank) is invalid, use 0 and conditionally supress the formula output display ( if you don't want to show the 0.)




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Glad to help...




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top