G
Guest
In order to have accuracy when using decimals I was advised to use the
currency type in a table. However, when I try to use the information I am
getting incorrect results.
Example: In the table I have a field "Tolerance" in which is stored .50 but
when I use a variable to use the data in a calculation (want to multiply by
..50), the variable shows "
0.05".
I have the table field "Tolerance" set for currency the fields show what I
enter with a $ and to decimal places "$0.05".
I have the variable "SinglePackTolerance" as follows: Dim
SinglePackTolerance As Double which should be 0.50 but is returned as "0.05"
I have other fields that seem to be working correctly.
they have the following data MasterWeight 0015.40 is picked up as 15.4,
EmptyWeight 000.62 picked up as 0.62, PackWeight 000.74 picked up as 0.74.
The difference I see is that the $0.50 entry has only 0 to the left of the
decimal and just one whole number to the right of the decimal.
Is currency the right choose for what I am trying to do?
Do I need to format the table field to something like 000.00 in order to
remove the dollar sign?
How do I avoid picking up incorrect data?
I have tried changing Dim SinglePackTolerance As to Single and Integer but
the results are still not correct.
Thank you in advance for your help.
Allan
currency type in a table. However, when I try to use the information I am
getting incorrect results.
Example: In the table I have a field "Tolerance" in which is stored .50 but
when I use a variable to use the data in a calculation (want to multiply by
..50), the variable shows "
0.05".
I have the table field "Tolerance" set for currency the fields show what I
enter with a $ and to decimal places "$0.05".
I have the variable "SinglePackTolerance" as follows: Dim
SinglePackTolerance As Double which should be 0.50 but is returned as "0.05"
I have other fields that seem to be working correctly.
they have the following data MasterWeight 0015.40 is picked up as 15.4,
EmptyWeight 000.62 picked up as 0.62, PackWeight 000.74 picked up as 0.74.
The difference I see is that the $0.50 entry has only 0 to the left of the
decimal and just one whole number to the right of the decimal.
Is currency the right choose for what I am trying to do?
Do I need to format the table field to something like 000.00 in order to
remove the dollar sign?
How do I avoid picking up incorrect data?
I have tried changing Dim SinglePackTolerance As to Single and Integer but
the results are still not correct.
Thank you in advance for your help.
Allan