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

Item send overide/abort on a code condition



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 19th 06, 04:02 PM posted to microsoft.public.outlook.program_forms
A Reno
external usenet poster
 
Posts: 4
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!

Ads
  #2  
Old June 19th 06, 04:14 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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" wrote in message ...
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!

 




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
Redemption Trapping a Condition or a Setting bobdydd Outlook - General Queries 3 June 2nd 06 03:55 PM
Redemption Trapping a Condition or a Setting bobdydd Outlook and VBA 3 June 2nd 06 03:55 PM
Send.item ? mrrcomp Outlook and VBA 2 February 2nd 06 04:38 PM
Restricted from showing active content. How to overide for loca files? Guillermo Scharffenorth Outlook Express 1 February 1st 06 10:23 PM
A program is trying to send mail using Item.Send Vitesh Outlook and VBA 1 January 23rd 06 03:25 PM


All times are GMT +1. The time now is 09:00 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.