A
Abe Katz
Hello,
I'm using the following code to send email from Access.
The problem is, many times I only want to send an email without an
attachment.
How can I do it without duplicating the same code, just to ignore the
Attachments.Add line?
Thanks
With objEmail
.To = wEmailAdrs '"(e-mail address removed)"
.Subject = wSubject
.body = wBody
.Attachments.Add wOutPut
.Send
End With
I'm using the following code to send email from Access.
The problem is, many times I only want to send an email without an
attachment.
How can I do it without duplicating the same code, just to ignore the
Attachments.Add line?
Thanks
With objEmail
.To = wEmailAdrs '"(e-mail address removed)"
.Subject = wSubject
.body = wBody
.Attachments.Add wOutPut
.Send
End With