My Assistant
![]() ![]() |
|
|
May 10 2007, 06:08 AM
Post
#1
|
|
|
UtterAccess Addict Posts: 264 |
I want to display a value in field ToDo to two decimal places in some code. Currently I have this:
ToDo = "$" & Round(([SumOfAmountUS] / [SumOfClicks]) / 2, 2) & "(Decrease)" But this isn't quite there yet! Any ideas? The field is a text field since I also append some text after the value. Thanks, Dave |
|
|
|
May 10 2007, 06:29 AM
Post
#2
|
|
|
UtterAccess VIP Posts: 3,881 From: New Zealand |
Dave,
I assume this is the Control Source of a textbox on a form or report? Try like this: =Format(([SumOfAmountUS]/[SumOfClicks])/2,"$#,##0.00(Decrease)") |
|
|
|
May 10 2007, 07:14 AM
Post
#3
|
|
|
UtterAccess Enthusiast Posts: 52 From: New York |
You could also check the properties of the control and make sure the Format is "Standard" and Decimal Places = 2.
|
|
|
|
May 10 2007, 07:21 AM
Post
#4
|
|
|
UtterAccess Addict Posts: 264 |
The solution that unfortunately has just been deleted did it. It is a text box so cannot be set to 2 decimal places. Text is appended to the formatted value so it has to be text box. Great solution from the deleted post. :S
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 25th May 2013 - 08:32 PM |