K kitty77 Registered User. Local time Yesterday, 22:52 Joined May 27, 2019 Messages 719 Mar 4, 2023 #1 I have the following in an unbound field, how can I force this to be 2 decimal places? ="+/- " & [Number1]
I have the following in an unbound field, how can I force this to be 2 decimal places? ="+/- " & [Number1]
theDBguy I’m here to help Staff member Local time Yesterday, 19:52 Joined Oct 29, 2018 Messages 22,701 Mar 4, 2023 #2 Go to the Format property and try Fixed with 2 decimal places. Last edited: Mar 4, 2023
K kitty77 Registered User. Local time Yesterday, 22:52 Joined May 27, 2019 Messages 719 Mar 4, 2023 #3 Doesn't work? Because of the text at the beginning?
theDBguy I’m here to help Staff member Local time Yesterday, 19:52 Joined Oct 29, 2018 Messages 22,701 Mar 4, 2023 #4 kitty77 said: Doesn't work? Because of the text at the beginning? Click to expand... Oh, you could try the following instead (untested) Code: ="+/-" & Format([Number], "0.00")
kitty77 said: Doesn't work? Because of the text at the beginning? Click to expand... Oh, you could try the following instead (untested) Code: ="+/-" & Format([Number], "0.00")
K kitty77 Registered User. Local time Yesterday, 22:52 Joined May 27, 2019 Messages 719 Mar 4, 2023 #5 That worked. Thanks!!
theDBguy I’m here to help Staff member Local time Yesterday, 19:52 Joined Oct 29, 2018 Messages 22,701 Mar 4, 2023 #6 kitty77 said: That worked. Thanks!! Click to expand... Good luck!
J Josef P. Well-known member Local time Today, 04:52 Joined Feb 2, 2023 Messages 1,168 Mar 4, 2023 #7 Just for info: "+/-" could also be set via the format property of the textbox. Then the value remains a number. Last edited: Mar 4, 2023
Just for info: "+/-" could also be set via the format property of the textbox. Then the value remains a number.
P Pat Hartman Super Moderator Staff member Local time Yesterday, 22:52 Joined Feb 19, 2002 Messages 48,006 Mar 4, 2023 #8 Just FYI, formatting doesn't limit the decimal places to 2. It just obfuscates the actual value. If you actually want to store only a fixed two decimal places, you need to round the result in the calculation.
Just FYI, formatting doesn't limit the decimal places to 2. It just obfuscates the actual value. If you actually want to store only a fixed two decimal places, you need to round the result in the calculation.