execute a module. How??

adaniele

Registered User.
Local time
Today, 17:02
Joined
Jul 18, 2005
Messages
176
Hi guys.....here is my problem.
I am using a module posted in this website by madmaxx to send emails via notes. The module works perfectly if i run it manually, but what i dont know is:
1- how to execute this module from a form.
2- how to pass a value from a form to this module
thx 4 your hlp, max.
 
easy way is

modulename.routinename

for no arguments or

modulename.routinename(argument1, argument2, etc)

for arguments

hope that helps
 
workmad3,
thx very much for your help, i will try your solution tomorrow morning.

In the meantime, i solved that problem including the code as a public sub in the form and calling it with argument. is it ok? i dont know if it is a better way but it works.

thx again, max.
 
if you only want it in the one form, then that way seems fine. Only reason you would want it in a module would be if the code is needed in several forms.
 

Users who are viewing this thread

Back
Top Bottom