Currency Format

Gismo

Registered User.
Local time
Today, 15:57
Joined
Jun 12, 2017
Messages
1,298
Hi all,

Any reason why my value control wont format to currency with thousand separator and no decimals?
The data type is number, double

"UGX "#,###;"(UGX "#,###)
 
Last edited:
what does it format to?
and what is the currency setting in windows?
 
what does it format to?
and what is the currency setting in windows?
It formats to 2553440 instead of 2,553,440 (Original value 2553440.23)
I don't want to see the decimals so that is correct

Window currency is set to ZAR, don't want to change that
 
works OK for me - i just copied your format string
for values 123456.78 and -123456.78
image_2022-11-26_103134608.png


image_2022-11-26_103305267.png

so suggests there is something in your settings preventing it from formatting as you require - don't ask me what, I have no idea
 
On the Property Sheet for Form or Report try setting Format to Currence or Fixed and set the decimal places to 2
 
On the Property Sheet for Form or Report try setting Format to Currence or Fixed and set the decimal places to 2
When I set the format to currency and decimal 2, I do get R4 424 200,00
Even when I set the decimal to 0, still the correct output as I dont want to see decimals
Which looks good but the incorrect currency
I dont want to change the windows currency tp UGX though
 
If you don't want to change the windows currency symbol, then use a separate field for the symbol and format the numeric value as fixed. That will always keep the currency symbol far to the left which is the preferred format for accountants. I keep the data in a currency field to avoid floating point errors but don't confuse the currency data type with the currency format.
 
Why "UGX "#,###;"(UGX "#,###)

Is that correct, including the #,### ? I don't know, just asking, but is that how you specify a thousand's separator?
 

Users who are viewing this thread

Back
Top Bottom