Formatting a number (number -> string)

  • Thread starter Thread starter Damir Dezeljin
  • Start date Start date
D

Damir Dezeljin

Hi.

I have a Double number which I would like to format to display it in a
Label box. How can I do this (I would like to set thousent separator to
'.' and decimal separator to ',' with two decimal places).

BTW: Is there any way to set a TextBox value in Access reports from
Event procedures?

Best regards,
Dezo
 
1) Label.Caption=Format(YourDouble,"Standard")

2) Each section of a Report (Headers, Footers, Detail) have Format events
which allow you to set the values of controls within those sections. You
could also do it earlier during the Report Open event, etc. It all depends
on how early you know if you need to or what the value should be...

HTH,
 

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

Back
Top