G
Guest
I am using the SendOBject to send a report from a form. Instead of hard
coding the email address into the VBA I would like to have those addresses
pulled from a table based on 1 of the fields in the form. I thought that I
would be able to do this by creating a function that would select the values
that I wanted. I would like to call a Public Function which has the select
statement in it and then insert that Public Function into the SendObject line
in the form. The reason is that if the email addresses for the distribution
change I will not have to change the code I would only have to change the
values in the table/form.
coding the email address into the VBA I would like to have those addresses
pulled from a table based on 1 of the fields in the form. I thought that I
would be able to do this by creating a function that would select the values
that I wanted. I would like to call a Public Function which has the select
statement in it and then insert that Public Function into the SendObject line
in the form. The reason is that if the email addresses for the distribution
change I will not have to change the code I would only have to change the
values in the table/form.