M
Miguel Isidoro
Hi,
In a InfoPath form, I am using a data validation rule where I compare two
values and if they don't match I show a error message. I have two textboxes
with similar expressions and data formatting settings that basically perform
a sum of values in 2 repeating tables. The problem I am having is that one is
storing the value with only 2 decimal places and the other is storing the
value with much more. Ex: instead of comparing 12,13 with 12,13 which would
not trigger a data validation error I am comparing 12,13 with 12,1299999999
because the second textbox is storing the value in its data source field with
more than 2 decimal places and the first textbox with only 2 decimal places.
The strangest thing is that the values from which the sum value is being
calculated are 4,20 and 7,93, both with only 2 decimal places. The display
value is however correct in both textboxes because of the data formatting
settings that are set to display 2 decimal places. Is there any way to use a
rule that makes a round of both values to the second decimal place so that i
can compare similar values (in my previous example 12,13 to 12,13) or to
prevent the values to be stored in the data source with more than 2 decimal
values?
Thanks,
Miguel
In a InfoPath form, I am using a data validation rule where I compare two
values and if they don't match I show a error message. I have two textboxes
with similar expressions and data formatting settings that basically perform
a sum of values in 2 repeating tables. The problem I am having is that one is
storing the value with only 2 decimal places and the other is storing the
value with much more. Ex: instead of comparing 12,13 with 12,13 which would
not trigger a data validation error I am comparing 12,13 with 12,1299999999
because the second textbox is storing the value in its data source field with
more than 2 decimal places and the first textbox with only 2 decimal places.
The strangest thing is that the values from which the sum value is being
calculated are 4,20 and 7,93, both with only 2 decimal places. The display
value is however correct in both textboxes because of the data formatting
settings that are set to display 2 decimal places. Is there any way to use a
rule that makes a round of both values to the second decimal place so that i
can compare similar values (in my previous example 12,13 to 12,13) or to
prevent the values to be stored in the data source with more than 2 decimal
values?
Thanks,
Miguel