I'm using the following code in an attempt to email reports from a database form in Access.
[Code=vb]
With EMsg
Set .Configuration = EConf
.To = Recip (variable)
.CC = "Susan.Miller@o cfl.net"
.From = "Susan.Miller@o cfl.net"
.Subject = "Please read: Test CDO message with Attached Reports"
.HTMLBody = strHTML
.addattachment (stDocName)
.send
End With
[/Code]
As long as the value of stDocName = nothing the email will work but will send a dat file (blank). If I assign a value (Report Name) to stDocName I get an error that reads Run-time Error '-2146697203 (800c000d)'; Specified protocol is unknown. Has anyone encountered this before or have any idea how to correct?
 
Thank you,
Keriana
					[Code=vb]
With EMsg
Set .Configuration = EConf
.To = Recip (variable)
.CC = "Susan.Miller@o cfl.net"
.From = "Susan.Miller@o cfl.net"
.Subject = "Please read: Test CDO message with Attached Reports"
.HTMLBody = strHTML
.addattachment (stDocName)
.send
End With
[/Code]
As long as the value of stDocName = nothing the email will work but will send a dat file (blank). If I assign a value (Report Name) to stDocName I get an error that reads Run-time Error '-2146697203 (800c000d)'; Specified protocol is unknown. Has anyone encountered this before or have any idea how to correct?
Thank you,
Keriana
Comment