A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Email question



 
 
Thread Tools Display Modes
  #1  
Old September 26th, 2006, 04:41 AM posted to microsoft.public.access.forms
Bill Davis
external usenet poster
 
Posts: 12
Default Email question

I am using the below code to send a email. I currently change the
default of the email to HTML and copy and paste the content of the
subform in the body of the email. Is it possible to have the content of
the subform automatically entered into the body of the email? Also,
how can I have the email open in HTML format so that the data in the
email is formated as in the subform.
Thanks

Private Sub cmdmail_Click()
On Error GoTo Err_cmdmail_Click

Dim stDocName As String

stDocName = "MasterData"

DoCmd.SendObject acSendNoObject, stDocName, acFormatHTML, ([CUID]),
, , ([feature code] & " " & _
"Item not billing. " & _
"Customer: " & [Customer Name] & " " & _
" " & "Acct: " & [customer Acct]) & " " & _
[currentmonth], _
FirstName & "," & Chr$(10) & _
"In conducting our monthly audit, we have the following list of
items that are not billing." & _
" If you would review the list and let us know what action should
be taken to get this issue corrected" & _
"Thank You," & Chr$(10) & Chr$(10) & _
"Auditing Team" & Chr$(10) & Chr$(10) _
, , False


Exit_cmdmail_Click:
Exit Sub

Err_cmdmail_Click:
MsgBox Err.Description
Resume Exit_cmdmail_Click

End Sub
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.