D
default105
Access 2k, WinXP
What is the best way to pass an array from one form to another? I have been
told numerous time to avoid at all cost public variables. I have one form
that when a Work Order is completed it has to send out an email to the
appropriate people. Through code it opens another form with a multiselect
listbox and captures the people in an array to then send an email with lotus.
The problem I am having is the information on form1 contains the subject,
body text and attachment code, form2 is the multiselect listbox with the
array of names to pass the sendto part of the lotus automation. How can I
get the array or the other variables to one form only without declaring a
public variable? Sorry so lengthy and thank you in advance.
Pete
What is the best way to pass an array from one form to another? I have been
told numerous time to avoid at all cost public variables. I have one form
that when a Work Order is completed it has to send out an email to the
appropriate people. Through code it opens another form with a multiselect
listbox and captures the people in an array to then send an email with lotus.
The problem I am having is the information on form1 contains the subject,
body text and attachment code, form2 is the multiselect listbox with the
array of names to pass the sendto part of the lotus automation. How can I
get the array or the other variables to one form only without declaring a
public variable? Sorry so lengthy and thank you in advance.
Pete