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

Formula to convert to date 1

Status
Not open for further replies.

Jimduq

Programmer
Dec 30, 2010
4
0
0
US
I have the following formula but keep getting error for 'Then missing'. Please advise where to insert 'Then'

If ({Command.DATA_TYPE_CD}="D" );
FormatDate(ToDate(FormatNumber({Command.BEFORE_VALUE_NO};"000000");"MMddyy"); "dd-MMM-yyyy");
FormatNumber({Command.BEFORE_VALUE_NO};"$#,###.#0"))
 
In Crystal, it would be something like
Code:
If ({Command.DATA_TYPE_CD}="D" )
then ToText({Command.BEFORE_VALUE_NO},"MMddyy") & " " &     
ToText({Command.BEFORE_VALUE_NO}, "$#,###.#0")
That may not be quite right, but [HELP] will give you the exact values.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top