Calculation-Continous form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gavo

    Calculation-Continous form

    Hi.

    using A2K; i have a form containing a continous subform. The question is,
    how can i call a calculation for one of the fields in the continous subform
    from the main form.

    At the moment i have a button on the main form that will call a public code
    containing the calculation i need, the problem i have is that it will only
    perform the calculation on the first record on the continous subform and i
    need it for all the records

    i dont know if you understand what i trying to say, so maybe with an example
    it will all be clear.

    this is an example with a sample calculation:

    subform:
    ID NAME PRICEĀ£ COST
    1 AAA 2 (PRICE * 2)
    2 BBB 5 "
    3 CCC 6 "
    4 DDD 7 "
    5 EEE 8 "

    basically what i need is..... from the main form, call the public code that
    will calculate the COST for all the records showing on the continous
    subform.....i have used a command button on the detail sectio on the
    subform, but it would requiere to press the button for every record...and
    that just doesnt work for me.

    So.....if any of you access experts knows the asnwer to my question please
    save me from getting fired!!!

    Thanks in advance......GA VO


Working...