L
Long Nguyen
(Outlook 2002)
My custom form has a combobox field and I set its MatchRequired control
property to True. When a value is entered which does not match a value in
the pick list the "Invalid Property Value" message is displayed. How can I
change this message to a meaningful message using vbscript code? I did try
to put the code below in the Item_CustomPropertyChange subroutine but it did
not work. The "Invalid propery Values" was still displayed instead of the
message from the Else part. What did I do wrong?
Case "ImplementGrp"
Set objControls = Item.GetInspector.ModifiedFormPages("Page 1")
If objControls("cboImplementor").MatchFound = True Then
msgbox "ok"
Else
MsgBox "Implement Group must be selected from list."
End If
Set objControls = Nothing
My custom form has a combobox field and I set its MatchRequired control
property to True. When a value is entered which does not match a value in
the pick list the "Invalid Property Value" message is displayed. How can I
change this message to a meaningful message using vbscript code? I did try
to put the code below in the Item_CustomPropertyChange subroutine but it did
not work. The "Invalid propery Values" was still displayed instead of the
message from the Else part. What did I do wrong?
Case "ImplementGrp"
Set objControls = Item.GetInspector.ModifiedFormPages("Page 1")
If objControls("cboImplementor").MatchFound = True Then
msgbox "ok"
Else
MsgBox "Implement Group must be selected from list."
End If
Set objControls = Nothing