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

Null Case and Numerical Field 1

Status
Not open for further replies.

sfujii

Programmer
Nov 28, 2005
4
US
Hi,

I have a numerical field populating a crystal report. I wrote a formula like the following:

If (tbl.field) = "" then
""
else
CStr(tbl.number)

so that tbl.number will be empty when tbl.field is null and a number otherwise. tbl.number has three decimal points but since I had to convert it to a string, it only displays two decimal points.

Could anyone help me get tbl.number to display three decimal points on the report? I am using CR .NET.

TIA!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top