Sending an Email directly from an Access Application

G

George

Access can be made to launch Outlook (or Outlook Express)
using the shell function as in
Call Shell(stAppName, 1)
where stAppName is the path to Outlook.

QUESTION: How do we use this code so the recipient email
address appears in the To: field, (as when you click on an
email address from within a word document?)

Is there a publication I can use? A Knowledge Base
Article?

Thanks

George
 
D

Dirk Goldgar

George said:
Access can be made to launch Outlook (or Outlook Express)
using the shell function as in
Call Shell(stAppName, 1)
where stAppName is the path to Outlook.

QUESTION: How do we use this code so the recipient email
address appears in the To: field, (as when you click on an
email address from within a word document?)

Is there a publication I can use? A Knowledge Base
Article?

Thanks

George

Use the DoCmd.SendObject method. Note that, although this is designed
to send Access objects as e-mail attachments, you can specify that no
object is to be attached -- just a plain text message. If you're using
Access 2000, make sure you're up to date on service packs for Access,
because the original release of A2K had a bug in the SendObject method.
 

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