HTML attachment problem

  • Thread starter Chuck Boulineau
  • Start date
C

Chuck Boulineau

I have an Access 2K application that has functionality for
sending reports as html attachments via Outlook 2K(found a
sample db, EmailSenate2K, online -
http://www.datastrat.com/DataStrat2.html). In testing the
code below, I have notice that when the email recipient of
the html report opens the attachment, it opens just fine
but on closing the attachment the following dialog box
pops up: The system can not find the file specified.
Here's the access code
-------------------------------------
Dim strDocName As String
Dim strEmail As String
Dim strMailSubject As String
Dim strMsg As String

strDocName = Me.lstRpt
strEmail = Me.txtSelected & vbNullString
strMailSubject = Me.txtMailSubject & vbNullString
strMsg = Me.txtMsg & vbNullString & vbCrLf & vbCrLf
& "Your Name" & _
vbCrLf & "MailTo:[email protected]"

DoCmd.SendObject objecttype:=acSendReport, _
ObjectName:=strDocName,ouputformat:=acFormatHTML, _
To:=strEmail,Subject:=strMailSubject,MessageText:=strMsg
 

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