formatting decimal places

F

fishqqq

I have a text field that i've set the control property as follows:

=Sum([QTY]) & " pcs - " & " " & [Lock HazStatus] & " at " & [Text10] &
" kgs Actual Wgt"

which returns

6 pcs - Haz at 544.307983398438 kgs Actual Wgt

Is there a way to format the [Text10] value to 2 decimal places?

thank you
Steve
 
J

John W. Vinson

I have a text field that i've set the control property as follows:

=Sum([QTY]) & " pcs - " & " " & [Lock HazStatus] & " at " & [Text10] &
" kgs Actual Wgt"

which returns

6 pcs - Haz at 544.307983398438 kgs Actual Wgt

Is there a way to format the [Text10] value to 2 decimal places?

thank you
Steve

Sure: a couple. Probably simplest is

=Sum([QTY]) & " pcs - " & [Lock HazStatus] & " at " & Round([Text10],2) & "
kgs Actual Wgt"
--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/Forums/en-US/accessdev/
http://social.answers.microsoft.com/Forums/en-US/addbuz/
and see also http://www.utteraccess.com
 
F

fishqqq

I have a text field that i've set the control property as follows:
=Sum([QTY]) & " pcs - " & " " & [Lock HazStatus] & " at " & [Text10] &
" kgs Actual Wgt"
which returns
6 pcs -  Haz at 544.307983398438 kgs Actual Wgt
Is there a way to format the [Text10] value to 2 decimal places?
thank you
Steve

Sure: a couple. Probably simplest is

=Sum([QTY]) & " pcs -  " & [Lock HazStatus] & " at " & Round([Text10],2) & "
kgs Actual Wgt"
--

             John W. Vinson [MVP]
 Microsoft's replacements for these newsgroups:
 http://social.msdn.microsoft.com/Forums/en-US/accessdev/
 http://social.answers.microsoft.com/Forums/en-US/addbuz/
 and see alsohttp://www.utteraccess.com

thank you John
 

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