I am having a problem that had been run into before. I have a couple of calculated fields in a subform. One sums a field in the subform and one counts the records. I have a function that I wrote that takes all the data from the main and subform and does a calculation. If I do a refresh and then do the function the calculation is done before the subform calculates the sum and count.
How do I make function wait for the subform calculated field to populate before it runs. I suppose I could do dcount and dsum in the function instead of using the calculated field on the subform - wouldn't that be slow? Is there a better way?
thanks
sam
How do I make function wait for the subform calculated field to populate before it runs. I suppose I could do dcount and dsum in the function instead of using the calculated field on the subform - wouldn't that be slow? Is there a better way?
thanks
sam