Item send overide/abort on a code condition

A

A Reno

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!
 
S

Sue Mosher [MVP-Outlook]

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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top