Sending email from data access page

K

Kari Fresquez

How can I get the following code (which works in a
regular Access form) to work on a onclick event of a
button on a data access page?


Dim stsub As String
Dim stmess As String
Dim stto As String
Dim stcc As String

stsub = "New Work Order Pending"
stmess = "Work Order Pending your approval - Please
check for outstanding Incidents >> Thank you Issue: " +
Forms!frmMarketingWO_Add!ScopeOfWork1
stto = "(e-mail address removed); (e-mail address removed)"
stcc = "(e-mail address removed)"
DoCmd.SendObject , , , stto, stcc, , stsub, stmess
 

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