custom currency formatting

B

bartas008

hey please help me!
i have to display fields on my report in Danish currency format.
But only for single report in my application so i don't want to change
windows regional settings.
Danish format is : 123.093,00 or 26,00 - examples
i try something like this: =format(MyValue;"#.##0,00) but access chane it
to #.0,00 automatically and currency is displayed incorrect!

i hope somebody help me
 
M

Marshall Barton

bartas008 said:
i have to display fields on my report in Danish currency format.
But only for single report in my application so i don't want to change
windows regional settings.
Danish format is : 123.093,00 or 26,00 - examples
i try something like this: =format(MyValue;"#.##0,00) but access chane it
to #.0,00 automatically and currency is displayed incorrect!


I would like to think there's a better way, but you can try
using:

=Replace(Replace(Replace(Format(MyValue;"#.##0,00");".";"]");",";".");"]";",")
 
B

bartas008

Thanks.
But the problem still is when i type :
=Replace(Replace(Replace(Format(MyValue;"#.##0,00");".";"]");",";".");"]";",")
ACCESS change it to:
=Replace(Replace(Replace(Format(MyValue;"#.0,00");".";"]");",";".");"]";",")

Why just i can't #.##0,00
it automatically change it to #.0,00

???




Marshall Barton said:
bartas008 said:
i have to display fields on my report in Danish currency format.
But only for single report in my application so i don't want to change
windows regional settings.
Danish format is : 123.093,00 or 26,00 - examples
i try something like this: =format(MyValue;"#.##0,00) but access chane it
to #.0,00 automatically and currency is displayed incorrect!


I would like to think there's a better way, but you can try
using:

=Replace(Replace(Replace(Format(MyValue;"#.##0,00");".";"]");",";".");"]";",")
 
M

Marshall Barton

Sorry, I should have changed your format to:
"#,##0.00"
so Access can understand it.

To use the format you were trying to use, you would have to
change your Windows regional settings.
--
Marsh
MVP [MS Access]

But the problem still is when i type :
=Replace(Replace(Replace(Format(MyValue;"#.##0,00");".";"]");",";".");"]";",")
ACCESS change it to:
=Replace(Replace(Replace(Format(MyValue;"#.0,00");".";"]");",";".");"]";",")

Why just i can't #.##0,00
it automatically change it to #.0,00


Marshall Barton said:
bartas008 said:
i have to display fields on my report in Danish currency format.
But only for single report in my application so i don't want to change
windows regional settings.
Danish format is : 123.093,00 or 26,00 - examples
i try something like this: =format(MyValue;"#.##0,00) but access chane it
to #.0,00 automatically and currency is displayed incorrect!


I would like to think there's a better way, but you can try
using:

=Replace(Replace(Replace(Format(MyValue;"#.##0,00");".";"]");",";".");"]";",")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top