displaying meaningful message when combobox value does not match

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
 

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