The problem is I want to show 3 or more places to the right of a decimal but if after two places to the right is a zero I don't want it to show any more places. In your demo you have the same problem if you add the "#" sign as the last digit to the right of the decimal it works fine but as soon as you set the display type to a currency like $#,0.00#;($#,0.00#) no matter what even if all zeros I get 3 places to the right. thanks MIKE
Can you perform a customization to assign the display format if the value is 3 zero's? Use the OnPrint event of the dbText to set the display format to $#,0.00#;($#,0.00#) when it is not three zeros, and $#,0.00;($#,0.00) when it ends in .000.
Comments
http://www.digital-metaphors.com/tips/ReplaceDisplayFormats.zip
Although, I'm not familiar with the format #3 that you mentioned.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
but if after two places to the right is a zero I don't want it to show any
more places.
In your demo you have the same problem if you add the "#" sign as the
last digit to the right of the decimal it works fine but as soon as you set
the display type to a currency like $#,0.00#;($#,0.00#) no matter what even
if all zeros I get 3 places to the right. thanks MIKE
3 zero's? Use the OnPrint event of the dbText to set the display format to
$#,0.00#;($#,0.00#) when it is not three zeros, and $#,0.00;($#,0.00) when
it ends in .000.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com