Hi,

Hopefully someone can help. I have to write a function that will calculate profit/loss for my form. The data needed to calculate has to be taken from 2 different relations. I don't know how this works.

Also, I have a calculate button on my form and I know I need a when-button-pressed trigger for it. Do I put the functin in there or do I need to put it in my database object script?

Help!