A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Message text disappears!



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old April 11th 07, 02:06 PM posted to microsoft.public.outlook.program_forms
winternan
external usenet poster
 
Posts: 2
Default Message text disappears!

Hi,

I have created an approval request form which can be sent to users for
approval or rejection. The recipient can then either 'approve' or 'reject'
by clicking on voting buttons from within the form. Either button click
triggers 'approve' or 'reject' forms (which are duplicates of the original
form) to be sent back to the user and copied to a public folder. The
'approve' or 'reject' forms retain text from the original request form in
every text box apart from the email message text box. Does anyone know why
this is?

I had the same problem with the 'approve' and 'reject' forms retaining
attachments and found the following vb code:

Function Item_CustomAction(ByVal Action, ByVal NewItem)
If Action.Name = "Activity Approved" Then
Call CopyAttachments(Item, NewItem)
Item.close(1)
Else
Item.save
Call CopyAttachments(Item, NewItem)
Item.Close(1)
End If
End Function
Sub CopyAttachments(objSourceItem, objTargetItem)
Set fso = CreateObject("Scripting.FileSystemObject")
Set fldTemp = fso.GetSpecialFolder(2) ' TemporaryFolder
strPath = fldTemp.Path & "\"
For Each objAtt In objSourceItem.Attachments
strFile = strPath & objAtt.FileName
objAtt.SaveAsFile strFile
objTargetItem.Attachments.Add strFile, , , objAtt.DisplayName
fso.DeleteFile strFile
Next

Set fldTemp = Nothing
Set fso = Nothing
End Sub

How do I modify this code to save the email message text as well? I'm not
really a programmer so any help would be MUCH appreciated.

Nancy.
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
search for text in a message, OE 6 roger Outlook Express 1 February 27th 07 12:43 AM
text message notification Scott0141 Outlook - Calandaring 1 January 27th 07 04:05 AM
text mysteriously disappears karen Outlook - General Queries 2 June 19th 06 11:34 PM
Message disappears from 2003 when viewed by 2000 client [email protected] Outlook - General Queries 2 May 15th 06 09:54 PM
No text in message Rob graham Outlook Express 3 March 2nd 06 08:48 AM


All times are GMT +1. The time now is 05:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.