PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming Item send overide/abort on a code condition

Reply

Item send overide/abort on a code condition

 
Thread Tools Rate Thread
Old 19-06-2006, 03:02 PM   #1
=?Utf-8?B?QSBSZW5v?=
Guest
 
Posts: n/a
Default Item send overide/abort on a code condition


I have created a custom form (email) with a few lines of validation code for
the text boxes, but i need to prevent the form being sent if the validation
fails. What is the easiest way to do that? I need to distribute this form in
the organisational forms library.

all sugestions welcome!

  Reply With Quote
Old 19-06-2006, 03:14 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Item send overide/abort on a code condition

Put code in the Item_Send event handler:

Function Item_Send()
If <your criteria are not met> Then
Item_Send = False
End If
End Function

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"A Reno" <AReno@discussions.microsoft.com> wrote in message news:26AE0519-D3BF-43E9-AA6D-C0FF78FC9C15@microsoft.com...
>I have created a custom form (email) with a few lines of validation code for
> the text boxes, but i need to prevent the form being sent if the validation
> fails. What is the easiest way to do that? I need to distribute this form in
> the organisational forms library.
>
> all sugestions welcome!
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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