View Single Post
  #1  
Old March 20th 07, 11:10 PM posted to microsoft.public.outlook.program_forms
Juls
external usenet poster
 
Posts: 9
Default VBSCRIPT Validate

Hi, for my custom form I have the following code:

Sub Item_Write()
If Item.UserProperties("Development Completed") #1/1/4501# and _
Item.UserProperties("Version Changed") = "" Then
msgbox ("error")
End If
End Sub

Currently when this clasue is trapped a message box appears showing an error
so I know the syntax is correct. At this point how do I
a) Prevent the form from being closed
b) Navigate the user to the field that is causing the error.

Thank-you/
Ads