Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email notification after changes made to form 1

Status
Not open for further replies.

childlead

Technical User
Jul 13, 2001
21
US
hi.

does anyone how to code email notifications only when changes are made to the forms. for example, i have a bug tracking software made in access where upon pressing the exit button, access automatically sends an email to a specified user. when a user enters new notes, i want access to detect the changes and send an email to the specified user ONLY when changes are made. thank you for your help.
 
Use [BeforeUpdate] event in the form and use SendObject (vba or macro) to send the e-mail.
 
I would do this

In your command button add this code

DoCmd.SendObject acSendNoObject, "", acFormatTXT, "youremail", , , "put your subject here", "put body of e-mail here", False
' Note the False means it will go out without user intervention. True will pop up and they have to click send.

Also note it will only go to the Outbox if they don't have their e-mail program open. then it will set there until they open their e-mail program DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top