sendobject action auto
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » SendObject action - auto insert of email address

SendObject action - auto insert of email address

resolvedResolved · High Priority · Version 2007

replyReply Fri 25 Mar 2011, 11:27 Edited on Mon 28 Mar 2011, 10:09Delegate Andy said...

Andy has attended:
Access Introduction course
Access Intermediate 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?

For upcoming training course dates see: Pricing & availability

replyReply Thu 31 Mar 2011, 08:51Trainer Anthony said...

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.

 

Please browse our web site to find out more about
access courses and other Microsoft training courses.

Access tip:

Run with the total

Often when creating reports with lists of transactions it can be useful to have a column which totals the transactions as the report progresses.

Using the Sum function gives the total for the whole group, not a running total.



Access provides an easy method of achieving a running total.



Click on the text box containing the data you wish to contain the running total.
Select the Data tab
Click in the Running sum option
Click the down arrow to view three options

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard