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

Code to set an auto follow up flag



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 21st 06, 11:55 AM posted to microsoft.public.outlook.program_forms
A Don
external usenet poster
 
Posts: 7
Default Code to set an auto follow up flag

Hi there,

I have been asked to develop a custom form (Outlook 2003) which requires a
follow up flag to be generated 1 hour after it is received by the recipient.

I have managed to trigger the flag automtically using the following code in
the
Send Mail function however this only flags up as soon as the mail is opened.

Function Item_Send()

'validate the fields before sending
Item_Send = False
if DoValidation Then

'set the importance & flag
Importance = 2
FlagStatus = 2
FlagRequest = "Follow Up " & Item.Subject
FlagDueBy = Now()
Item_Send = True
Else
Exit Function
End If
End Function

Reading other forums it is apparent that this is possible using the
DateAdd() function, however I'm not too sure how this works.

Does anyone out there have any ideas ?


  #2  
Old April 21st 06, 12:19 PM posted to microsoft.public.outlook.program_forms
A Don
external usenet poster
 
Posts: 7
Default Code to set an auto follow up flag



"A Don" wrote:

Hi there,

I have been asked to develop a custom form (Outlook 2003) which requires a
follow up flag to be generated 1 hour after it is received by the recipient.

I have managed to trigger the flag automtically using the following code in
the
Send Mail function however this only flags up as soon as the mail is opened.

Function Item_Send()

'validate the fields before sending
Item_Send = False
if DoValidation Then

'set the importance & flag
Importance = 2
FlagStatus = 2
FlagRequest = "Follow Up " & Item.Subject
FlagDueBy = Now()
Item_Send = True
Else
Exit Function
End If
End Function

Reading other forums it is apparent that this is possible using the
DateAdd() function, however I'm not too sure how this works.

Does anyone out there have any ideas ?





I think I've cracked it - I've changed 1 line of code

FlagDueBy = DateAdd("n",60, Now)


 




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
flag to follow up not working mel waite Outlook - Using Forms 1 May 3rd 06 03:26 PM
flag to follow up not working mel waite Outlook - Using Contacts 2 April 10th 06 10:35 AM
flag to follow up not working mel waite Outlook - General Queries 0 April 9th 06 02:37 PM
Code to set Flag Status to complete on custom form ICT User Outlook - Using Forms 3 March 28th 06 12:59 AM
Follow up Flag JCO Outlook - General Queries 11 March 23rd 06 03:33 PM


All times are GMT +1. The time now is 10:18 PM.


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.