I'm not a VB/VBA expert so others will have to help you on the technical
side, but in general terms what you're contemplating (processing the "plan"
records in order to compare them with the "actual" recordsl) doesn't sound
like "a good idea" to me. Rather, if anything, you should be processing the
detailed records (summarising them in some way???).
In the "plan" records, what constitutes early, late and on-time? If it's a
planned date and/or time, then you "should" be able to parse through each
"actual" record and compare it to the date/time deadline criteria set out in
the "plan" record . That would tell you whether each "actual" record was
early, late, or on-time. Then, it would just be a matter of totally up the
each category.
Or, maybe I'm not fully understanding what you're trying to do? Perhaps
more info would help? What fields do you have in the "plan" records? What
fields are in the "actual" records? What, specifically, are you trying to
compare?
Sorry I'm not providing answers, but sometimes it's better to focus on
questions rather than answers.
Regards, Chris