Format property

radek225

Registered User.
Local time
Today, 05:34
Joined
Apr 4, 2013
Messages
307
In my form:
If I want to have cubic meter format of my control, then I type
Code:
&" m³"

if I want to have thousands separator then I type
Code:
# ###

How should format look like for cubic meter control and thousands separator. In addition, this control should has three decimal places, but only when decimal places aren't null e.g.
If I have 231 should display 231 not 231,000
if I have 231,23 should display 231,23 not 231,230
 
i think you can't specially if your form is continuous.
 
i wouldnt put the meter symbol IN the format, instead just put it as a label outside the box.

not sure access can do a NO COMMA format.
 
there is none, all records will take the same format.
 
just use the Format property of the control:

Format: #,###" m³"
 
just use the Format property of the control:

Format: #,###" m³"

It's fine for me. Could you tell me how should I set it using VBA?
When I do
Code:
Me.WolumenSumaryczny.Format = "# ###" & "," & "####" & " MWh"
then get something like
Code:
#\ # ###" MWh"

:/
 
Me.WolumenSumaryczny.Format ="#,##0 \M\W\h"
 

Users who are viewing this thread

Back
Top Bottom