Send an e-mail

T

Ty

How easy is it to have a send e-mail button?

I have a field in my database with the person's e-mail
address and I was wondering how to create a button that
would take the e-mail address field's contents and bring
it up in outlook.

Thanks.

Ty
 
A

Allen Browne

Use this line in the Click event procedure of your command button:

DoCmd.SendObject acSendNoObject,,,[MyEmailField],,,"MySubject", "My
message", True
 
T

Ty

Allen - I don't mean to sound stupid, but I don't know
where to paste that command.

Ty
-----Original Message-----
Use this line in the Click event procedure of your command button:

DoCmd.SendObject acSendNoObject,,,
[MyEmailField],,,"MySubject", "My
 
A

Allen Browne

1. Open your form in design view.

2. Right-click your command button, and choose Properites.
Locate the On Click property (Event tab), and set it to:
[Event Procedure]

3. Click the Build button (...) beside this.
Access opens the code window.

4. Paste the line (it's one line!), between the "Sub..." and "End Sub"
lines.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.


Ty said:
Allen - I don't mean to sound stupid, but I don't know
where to paste that command.

Ty
-----Original Message-----
Use this line in the Click event procedure of your command button:

DoCmd.SendObject acSendNoObject,,,
[MyEmailField],,,"MySubject", "My
message", True
 

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