A
AimeeK via AccessMonster.com
I have a calculation that converts markup to margin in a form. Basically,
when a user types in a value in one text box, the result in another text box
will be the corresponding margin. The calculation is encoded in the vba of
the form. My problem is that some of the numbers are not rounding up
properly. For instance, a markup of 8.75 should convert to 8.1, but instead
showing as 8.0, the raw data is actually 8.04597759246826. I would think
using a text box format of 0.0 should round it up, but it's not working. I
need it to display 8.1 at both the form and table levels for auditing
purposes. Not sure if it has to do with the banker's rounding in Access at
this point. I've tried everything...can anyone please help me? Thanks.
when a user types in a value in one text box, the result in another text box
will be the corresponding margin. The calculation is encoded in the vba of
the form. My problem is that some of the numbers are not rounding up
properly. For instance, a markup of 8.75 should convert to 8.1, but instead
showing as 8.0, the raw data is actually 8.04597759246826. I would think
using a text box format of 0.0 should round it up, but it's not working. I
need it to display 8.1 at both the form and table levels for auditing
purposes. Not sure if it has to do with the banker's rounding in Access at
this point. I've tried everything...can anyone please help me? Thanks.