Outlook not Validating Field Before Sending

  • Thread starter Jordan H via OfficeKB.com
  • Start date
J

Jordan H via OfficeKB.com

I have a custom form for a task. Outlook 2002 is not validting the field
before I send the item only when opening the Item. I have tried

[group] <> ""

this validates on opening

I have also tried

Function Item_Send()
If [group] <> "" Then
Item_Send = false
End If
End Function

in the script. Is there a method to modify the validate rule in the field to
not send if the validate rule is not correct.
 
S

Sue Mosher [MVP-Outlook]

This is not a valid VBScript expression:

[group] <> ""

Is group a custom property? If so, you must use the correct syntax:

Item.UserProperties("group") <> ""

See http://www.outlookcode.com/d/propsyntax.htm for more information on Outlook property syntax.

You can also perform validation by setting a validation formula on the control displaying the property.
 

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