Attachments, VB, on a form.

C

Cecilia Potter

I have an Outlook form with fields that use a VB script to
insert into the message body on the send command.

This is the script
"Function Item_Send()
strText = "{|Custid|}=" & Item.Userproperties("User ID") &
vbCrLf & _
"{|PriorityName|}=" & Item.UserProperties("Helpdesk
Priority") & vbCrLf &_
"{|CallDesc|}=" & Item.UserProperties("Subject")&
Item.UserProperties("Call Information")& vbCrLf
Item.Body = Item.Body & vbCrLf & strText
End Function"

However we now need the form to accept attachments. As
I've read you need to have the message control (message
field) on the form (and visible) to be able to see the
paperclip icon and attach files.

However in doing this, it breaks my code. I expect it is
trying to put the fields into the message body and not
knowing what to do as there is already an attachment in
there.

Can anyone help me out please. Is there extra coding that
I need to do to get the information (fields) to be
appended to the attachment in the message body, or is
there something I need to do to the message body on the
form to accept that it will be populated with data on the
send action????
 
S

Sue Mosher [MVP]

What breaks in your code?
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 

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