|
Peter,
I don't think the open/close would be a problem.
Simply leave the file open, on the next call, check to see if it's for the same facility. If not,
then close the current file and reopen the correct one.
While you normally want a trigger program to avoid open/close, that's really only a consideration when
the trigger is fired for lots of records. As long as your trigger is fired for lots of records within
a single facility at a time, the extra open/closes when switching facilities should be insignificant.
Now if you update 1 record for Facility A, then one for B, one for C,...
You'd have a problem.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.