Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can someone help with this DAP delima

Status
Not open for further replies.

rayeni

MIS
Dec 13, 2002
13
US
How do I send data from a DAP in an Outlook email?

In a form, you would reference the fields you wish to send by passing "Me!controlname" to a variable and pass that variable to objMail.body. For a DAP using vbscript, it doesn't work. Need Help.

<SCRIPT language=vbscript event=onclick for=command0>
<!--
Const olMailItem = 0

Dim objOutlk 'Outlook object
Dim objMail 'Outlook item
Dim strMailTo 'List of people to mail request to

strMailTo = &quot;anybody@yahoo.com&quot;

Set objOutlk = createObject(&quot;Outlook.Application&quot;)
Set objMail = objOutlk.createItem(olMailItem)

objMail.To = strMailTo
objMail.Subject = &quot;Hello&quot;
objMail.body =
objMail.send
set objMail = nothing
Set objOutlk = nothing

-->
</SCRIPT>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top