Question : access send email to a particular address

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 [email protected]) that a new entry has been made.

anyone assist please. many thanks

Answer : access send email to a particular address

Access includes the SendObject method. You can use it to send email:

DoCmd.SendObject acSendNoObject, , , "[email protected]", , , "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.
Random Solutions  
 
programming4us programming4us