CDO Mail sending attachment via location field

So I have, now getting error 13 Type Mismatch

But when I have .Attachment.Add filename I get the error 438

Capture.PNG
 
It's .AddAttachment rs.Fields("FormLocation")
 
It's .AddAttachment rs.Fields("FormLocation")
The o/p assigned that field to filename after opening the recordset.
However cheekybuddha is correct with the method name

 
Yes, but outside the loop.

So if there is more than one record, it will continue to attach the attachment from the first record
 
The issue is the method.

In the failed attempt in Post#21 the OP was using a nonsense method.
 
Last edited:
Yes, but outside the loop.

So if there is more than one record, it will continue to attach the attachment from the first record
The o/p actually had .AddAttachment in the original code? :(
 
Code:
.AddAttachment rs.Fields("FormLocation")

Worked perfectly. hanks fr all the help
 

Users who are viewing this thread

Back
Top Bottom