Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

sendobject action auto

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

ResolvedVersion 2007
Edited on Mon 28 Mar 2011, 10:09

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.

Access tip:

Prefixed Autonumbering

When using Date Type = Autonumber as a primary key, clients may require autonumbering to be prefixed with a letter.

For example, P001, where P is the prefixed letter

Instructions
Step 1. Create Field Name
Step 2. Set Data Type to Autonumber
Step 3. Within Field Property General tabsheet,
enter Format property as [backslash]P000



View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.