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!
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!