Stop Rounding on Unbound Text Box

LaurieW

Registered User.
Local time
Today, 03:05
Joined
May 9, 2002
Messages
99
I have been searching thru these posts for help on rounding but haven't found an answer for my situation.

I have a Form with unbound text boxes whose calculations that are rounding. All of the text boxes are unbound and are NOT fields that come from a table, so I can not set their field type as I have read in other posts.

Here is what I have on my form:

#1 - unbound text box that counts checkboxes; this text box's format is set to General Number with zero decimal places.

#2 - unbound text box the user types an invoice amount into. This text box's format is set to Currency with 2 decimal places.

#3 - unbound text box that does the calculation of #1 divided by #2. This text box's format is set to Currency with 2 decimal places.

The calculation in #3 is always rounding and I don't understand why. If, for example, I have an amount of $300.99 and have 3 checkboxes checked (the calculation is $300.99/3), I get a calculation of $100.00 instead of $100.33. Why?? Can this be corrected somehow? I have tried many things to no avail. Hope someone can shed some light on this...thanks!
 
Last edited:
You're sure the calculation being done is

300.99/3

and not

300.99\3?

300.99/3 should yield 100.33

but

300.99\3 will yield 100.00

The backslash returns an Integer, as Curtis suggested.
 
Thank you! Yes, I did have a backslash (\) instead of a slash (/) in the calculated fields. I've changed it and it works now! Thanks again!
 

Users who are viewing this thread

Back
Top Bottom