Gasman
Enthusiastic Amateur
- Local time
- Today, 19:14
- Joined
- Sep 21, 2011
- Messages
- 14,046
Hi everyone,
I am slowly realising that a piece of code that I wrote for one database could be used in another. One example is an email subroutine, in which I pass the email addresses, file to attach (if required), subject and body text.
Nothing fancy, but I can see that I could use this routine in a small database I am attempting for employee information.
What is the best way to be able to reuse this code?
What would happen if I perhaps 'enhanced' it with the option of multiple filenames split by ';' perhaps?, how would I get that amendment into wherever it was being used.?
TIA
I am slowly realising that a piece of code that I wrote for one database could be used in another. One example is an email subroutine, in which I pass the email addresses, file to attach (if required), subject and body text.
Nothing fancy, but I can see that I could use this routine in a small database I am attempting for employee information.
What is the best way to be able to reuse this code?
What would happen if I perhaps 'enhanced' it with the option of multiple filenames split by ';' perhaps?, how would I get that amendment into wherever it was being used.?
TIA