Not really sure how you want a zero to be formatted, but
(0).ToString("000,000,000") '//Produces 000,000,000

Signature
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net
>I want to display numbers with a comma between every 3 digits, with no
>decimal places.
[quoted text clipped - 11 lines]
>
> Vayse
Kevin Yu [MSFT] - 04 Apr 2006 04:12 GMT
Hi Vayse,
This is by design, if a digit is 0, the # will automatically ignore it and
display nothing. Please try to use a pre-defined format string like
Me.TextBox1.Text = Format(0, "N")
HTH.
Kevin Yu

Signature
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Vayse - 04 Apr 2006 15:49 GMT
> Hi Vayse,
>
> This is by design, if a digit is 0, the # will automatically ignore it and
> display nothing. Please try to use a pre-defined format string like
>
> Me.TextBox1.Text = Format(0, "N")
Thanks, but I don't think there is a pre-defined format that matches. "N"
will still display decimal places, which I don't want to do.
I know I can check in code if the number is zero, then use a different
format, but I'm hoping there is a format that would suit.
Vayse
Patrice - 04 Apr 2006 17:05 GMT
N0 will display the value without decimal places...

Signature
>> Hi Vayse,
>>
[quoted text clipped - 9 lines]
> format, but I'm hoping there is a format that would suit.
> Vayse
Kevin Yu [MSFT] - 05 Apr 2006 02:55 GMT
Thanks for Patrice's suggestion, N0 will do the trick.
Kevin Yu

Signature
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Vayse - 04 Apr 2006 12:37 GMT
> Not really sure how you want a zero to be formatted, but
>
> (0).ToString("000,000,000") '//Produces 000,000,000
I don't want zero formatted. If its zero, I just want 0 displayed.
What about FormatNumber(drEconomy("Cash"),0)
Dan
>I want to display numbers with a comma between every 3 digits, with no
>decimal places.
[quoted text clipped - 11 lines]
>
> Vayse