98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Access Training and help » SendObject action - auto insert of email address | Access forum
SendObject action - auto insert of email address | Access forum
Resolved · High Priority · Version 2007
Andy has attended:
Access Introduction course
Access Intermediate course
Access Advanced course
Access Advanced course
SendObject action - auto insert of email address
Update 28/3/11
Hi again
If worked out how to put an email address in to the 'To' field - insert the expression =[Field name].
However, I now can't find a way of adding more than one email address to the 'To' i.e. we have up to 5 email addresses per Supplier so I may want to send to them all.
At the moment I'm going to utilise the CC and BCC fields so I can send to 3 email addresses but would like the ability to send to more recipients.
Any ideas?
Thanks
Andy
Hi
I'm setting up a process to compile and send reports by email.
I have built an event using SendObject that selects the records for a supplier from a query and transfers it to a report, and attaches it to an email with standard subject line and body text.
However, the sendobject command won't allow me to automatically insert the supplier's email address in to the "To" field in the email.
the process would be much slicker if i could get access to add the email address to the email rather than copying and pasting the email address from the access form.
Are there any solutions?
RE: SendObject action - auto insert of email address
Hi Andy, thanks for your query. Two things about this. First I would concatenate the email addresses in one string and bolt that into the address field of the email. You could pull the emails into a list box and allow the user to select which ones to use.
Secondly, and this is without knowing the nature your database, you may need to loop through however may email addresses you have at some stage. That will involve some code I'm afraid.
Hope this helps,
Anthony
Wed 6 Apr 2011: Automatically marked as resolved.
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Access tip:Create a custom Close button on a FormBy default, Forms that you create in Access have a full set of control buttons, that is, a title bar with Minimize, Maximize and Close buttons in the top right-hand corner and a Control Menu in the top left-hand corner. |