H
hfarner
Hi,
I have a rather complex dataset where there error occurrs, but I created a
small project and can reproduce the error. Here it is in a nutshell:
Datatable Bid has columns PCT decimal and ID, also TotalBid and TotalCost
expression columns.
Table BidChild has column ID relating to parent Bid, Quantity and price,
decimal. Cost is the expression Quantity*Cost as decimal, BidCost is the
following formula:
Cost + (Cost / (1-Parent.PCT))
In theory, this would show the marked up cost based on the value of the PCT
field in parent record. So, put two grids on a form showing the data and
place .25 in the PCT column, add a child putting 1 in quantity, 100 in price
and the calculation yields 233.333333333333 (Not the correct answer).
However, if you change the formula to Cost + (Cost * Parent.PCT) it yield a
correct answer. I need the formula as shown above, not the one that actually
yeilds a value. Can someone please tell me either a) what I am doing wrong
or b) suggestion on corrective action to get the correct value.
Thanks!
Howard Arner
I have a rather complex dataset where there error occurrs, but I created a
small project and can reproduce the error. Here it is in a nutshell:
Datatable Bid has columns PCT decimal and ID, also TotalBid and TotalCost
expression columns.
Table BidChild has column ID relating to parent Bid, Quantity and price,
decimal. Cost is the expression Quantity*Cost as decimal, BidCost is the
following formula:
Cost + (Cost / (1-Parent.PCT))
In theory, this would show the marked up cost based on the value of the PCT
field in parent record. So, put two grids on a form showing the data and
place .25 in the PCT column, add a child putting 1 in quantity, 100 in price
and the calculation yields 233.333333333333 (Not the correct answer).
However, if you change the formula to Cost + (Cost * Parent.PCT) it yield a
correct answer. I need the formula as shown above, not the one that actually
yeilds a value. Can someone please tell me either a) what I am doing wrong
or b) suggestion on corrective action to get the correct value.
Thanks!
Howard Arner