Access and Outlook - Using email addresses from Access

G

geordie_phil

Hi guys,

This might be a really simple question but how do I go about sending an
email, using Outlook, to all email addresses contained in an Access table?

I'm using Access and Outlook 2003.

Thanks

Phil
 
S

Stockwell43

Hi Jerry,

I tried clicking on the link and it gave me an error message.

ADODB.Recordset error '800a0bb9'

Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.

/Otherdownload.asp, line 32
 
S

Stockwell43

I got it. I took off everything after the .com and worked my way through the
site. Nice database. I am more than sure something like this will come in
handy. Question: Is there a way to select certain addresses from the table?
For example:

Say I have 30 email addresses in the table. I guess the database would give
me a choice of one or all but, could I select any 10 from the table to be
sent? I apologize if this is possible because I just opened it and didn't
really play with it much.

Thanks!!
 
G

geordie_phil

That looks very complex :)

I'll definately consider this method in the future, but for the time being I
have a table which contains a list of email addresses which I'd like to
populate the 'To:' field in an Outlook email?

Any suggestions?

Kind regards

Phil
 
J

Jerry Whittle

If you want to send out all the addresses on one email, there is a quick and
dirty method that I sometimes use. It's not high-tech as you will see!

First I create a query that gathers up all the email addresses.

Then I export the data in the query as a RTF file to the desktop.

Next I open up the RTF file with Word.

Using Word, I covert the table into text.

Next in Word I replace all the paragraph returns ( ^p ) with semi-colons ( ;
).

I then paste the results into the email address. Usually I put them in the
BCC file to protect the privacy of others.

It sounds like a lot of work, however, it can be automated somewhat. For
example if you export the same email addresses frequently, create a query and
save it. For example I have a query to grab all the email addresses called
qryEmails:

SELECT [Employee Addresses].[E-Mail]
FROM [Employee Addresses]
WHERE ((([Employee Addresses].[E-Mail]) Is Not Null))
ORDER BY [Employee Addresses].[E-Mail];

Then using code or a macro, export the data. That way you could put a button
on a switchboard. Something like this for the code:

DoCmd.OutputTo acQuery, "qryEmails", "RichTextFormat(*.rtf)", "C:\Documents
and Settings\Jerome.Whittle\Desktop\emails.doc", True, "", 0

The above will open the document in Word. While in Word record a macro while
converting the table to text and removing the paragraph markers. Then save
the macro and put a button on your toolbar to run it.

Then it becomes just a matter of clicking a button in Access, then clicking
another button in Word, then doing a copy and past into an Outlook email.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top