Error Message

  • Thread starter Thread starter Arlene Swedberg
  • Start date Start date
A

Arlene Swedberg

I have someone testing a custom form I have created and
they are receiving the following error message:

Object required: '[string: "IPM.Task.Unit Change
Request"]'Line No:72

The error is referring to this line in my Item_Open
procedure:

Set sSaveMessageClass = Item.MessageClass

I also have the following in my Item_Write function:

Set MyProp = Item.Userproperties.Add("MyField",1)
Item.MessageClass = sSaveMessageClass
Item.save

I found this example when I was searching for a fix for my
form that was becoming a one-off form.

Why am I able to run the form without error, but another
user gets the error message?

Arlene
 
-----Original Message-----
MessageClass is a string, not an object. Hence, the statement should be:

sSaveMessageClass = Item.MessageClass

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm

I have someone testing a custom form I have created and
they are receiving the following error message:

Object required: '[string: "IPM.Task.Unit Change
Request"]'Line No:72

The error is referring to this line in my Item_Open
procedure:

Set sSaveMessageClass = Item.MessageClass

I also have the following in my Item_Write function:

Set MyProp = Item.Userproperties.Add("MyField",1)
Item.MessageClass = sSaveMessageClass
Item.save

I found this example when I was searching for a fix for my
form that was becoming a one-off form.

Why am I able to run the form without error, but another
user gets the error message?

Arlene
.
Thank you!
 
Back
Top