Item send overide/abort on a code condition

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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
 
Back
Top