By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,825 Members | 1,218 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,825 IT Pros & Developers. It's quick & easy.

Calculation-Continous form

P: n/a
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......GAVO
Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.