Solved

access send email to a particular address

Posted on 2010-08-22
5
251 Views
Last Modified: 2013-11-28
Wonder if there is a flat pack solution to this?

I should like a command button that when pressed sends a message like

subject: new entry has been made in accounts database

to a defined email address. ie to notify a specific accounts person (say accounts@acme.com) that a new entry has been made.

anyone assist please. many thanks
0
Comment
Question by:topUKlawyer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 33495007
Access includes the SendObject method. You can use it to send email:

DoCmd.SendObject acSendNoObject, , , "someone@somewhere.com", , , "MySubject", "MyBody", False

This uses the default email client. In some casese, this can trigger security warnings, specifically on Outlook platforms. If you need more robust capabilities, I'd suggest something like vbMAPI from www.everythingaccess.com.
0
 
LVL 48

Expert Comment

by:Dale Fye
ID: 33495012
Take a look at the SendObject method.  This should work perfectly for what you want to do.
0
 

Author Comment

by:topUKlawyer
ID: 33495232
`thanks guys

am awarding full points to LSM because I have got full instructions which I have put into place and works well

I couldnt put fyed's helpful hint without more.

hope thats ok guys
0
 

Author Closing Comment

by:topUKlawyer
ID: 33495236
Thanks
0
 
LVL 48

Expert Comment

by:Dale Fye
ID: 33496566
LSM was quicker to the draw than I was.

For a "topUKlawyer", I would think research and reading would be right up your alley.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question