Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook 2K - Not Running CustomPropertyChange Code

Status
Not open for further replies.

GeekGirlau

Programmer
Jul 29, 2001
216
AU
I have a custom form that uses the CustomPropertyChange event to hide or display different controls each time the value is changed within a list box. Sample of the code appears below:

Sub Item_CustomPropertyChange(ByVal Name)
Select Case Name
Case "ServiceLevel"
Set myPages = Item.GetInspector.ModifiedFormPages

Select Case Item.UserProperties("ServiceLevel").Value
Case "Level 1"
myPages("Message").Controls("txtLevel1").Visible=True
myPages("Message").Controls("chkLevel1_1").Visible=True
...

Case "Level 1+"
...

Case "Level 2"
...
End Select
End Select
End Sub

The code runs perfectly if I use the "Run this form" option from Design View within Outlook. However if I open the form from Explorer or launch it via MS Access, the code doesn't run.

HELP!!! [pc]
 
have u posted this thread in the VBA forum, you might get a better response there.
i am not sure how the event handling in an outlook form works, with regards to when it is opened from other apps,

regards,
richard
 
Hi. Did you ever find a resolution to this problem? I have a CustomPropertyChange routine that works great when the form is opened, but I need for it to fire when the user changes data in a table view in Outlook (without first opening the form). Any ideas?

Randy Carr
randy.carr@carteretcraven.ncemcs.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top