I'm making a form/table combo that will calculate the value of a computer based on the length of time you've had it.
"Purchase price" and "Current price" are both defined as decimal variables. The rest have been defined as integers.
In the form, in the "Current price" text box, in the OnValidate area, I've put
Monthcalc := "Current month" + (12-"Purchase month") + ( 12* ("Current year (20xx)" - "Purchase year (20xx)"));
"Current price" := "Purchase price" * POWER((1-0.025),Monthcalc)
However, when I run the form and enter values, the value is "0" in the Current Price field. Why could this be?