blonde moment
Dim EmailApp, NameSpace, EmailSend As Object
Set EmailApp = CreateObject("Outlook.Application")
Set NameSpace = EmailApp.GetNamespace("MAPI")
Set EmailSend = EmailApp.CreateItem(0)
the above works great
and so does -
EmailSend.Attachments.Add ([attachmentfld])
however if I have no attachment - it throws a wobble - I know its simple - but cannot see it - - something along the lines of if attachmentfld is not null then ?
points would be appricated
Dim EmailApp, NameSpace, EmailSend As Object
Set EmailApp = CreateObject("Outlook.Application")
Set NameSpace = EmailApp.GetNamespace("MAPI")
Set EmailSend = EmailApp.CreateItem(0)
the above works great
and so does -
EmailSend.Attachments.Add ([attachmentfld])
however if I have no attachment - it throws a wobble - I know its simple - but cannot see it - - something along the lines of if attachmentfld is not null then ?
points would be appricated