• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

Changing Message Class

I have Outlook 98 Corporate Version. I created a custom outlook form. I change the fields bound to the text boxes with vbscript to keep an inventory for each individual contact. If I add anything in my inventory fields and save it, the message class CHANGES to from IPM.Contact.Customers to IPM.Contact, however the form visually or when I open up the contact that has the message class IPM.Contact, it still shows up with the The Customers form I created. I really could care less that it does this, however, If I want to alter anything in my form and publish it all the ones that are IPM.Contact don't get updated. Please Help.

By The Way I already have tried using the Office 97 Message Class Changer, and the one made for outlook to manually change the message class, and they delete any fields not bound to the form, so I need a solution other then using one of these manual methods.
0
icenet
Asked:
icenet
  • 5
  • 3
  • 2
1 Solution
 
icenetAuthor Commented:
Edited text of question
0
 
icenetAuthor Commented:
Edited text of question
0
 
icenetAuthor Commented:
Adjusted points to 200
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
icenetAuthor Commented:
Adjusted points to 205
0
 
BodyaCommented:
I tried to emulate the problem you have run in. I made my own form (derived from contact) with several new fields, published it in Personal Forms library and then create a contact with it. I saved it and open it again. And the Message Class of this form was the one of just created form, i.e. IPM.Contact.MyContact. When I changed its design and saved in the Personal Forms library again, the changes appear in the Contact I have created with this form.
Then I found that if I publish the form in Contacts folder I really encounter the same problem that you have.

So I may offer you the following solution:
Publish your forms not in Contact folder, but in Personal Form library.

Good luck,
Bodya
0
 
icenetAuthor Commented:
I tried putting the form only in the personal forms library, like you said, and it did the same thing, as soon as I put anything in the fields that switch with vbscript it changes the Message Class to IPM.Contact instead of IPM.Contact.Customers. The other thing is that if I change the view to a phone list and add the message class as one of the fields in the current view, and then if I create a new contact it gives it the icon of a message or e-mail, which is kind of wierd. However the message class is IPM.Contact.Customers just as it should be, Then if I go back in the contact add anything to the fields that change through vbscript, save the contact and the Message class is IPM.Contact and the Icon for the contact is now the default for contacts. Please Help...

0
 
reddarinCommented:
icenet,

If bodya's answer didn't work for you, reject it. Then the question will move back out into the 'waiting for answer' area and who knows who might take a whack at it?

Darin
0
 
BodyaCommented:
If I undersatnd you right, you are adding new user properties not in design time, but with VBScript code?
I will work on it.

0
 
BodyaCommented:
I'm sure that the right desision is to PUBLISH (not save) you form in Personal or Public Forms Library. But what have I noticed that there are several problems.
I will describe what I've done and what I've gotten.

1. I created a Contact and swithc to a design time. On the second page I have added two new fields (MonthSalary,YearSalary) and write the following code for it (here is only a fragment):
Sub Item_CustomPropertyChange(ByVal Name)
Set MyContact = Application.ActiveInspector.CurrentItem
select case Name
case "MonthSalary":
      MyContact.UserProperties("YearSalary")=MyContact.UserProperties("MonthSalary").Value * 12
case "YearSalary":
      MyContact.UserProperties("MonthSalary")=MyContact.UserProperties("YearSalary").Value / 12
end select
End Sub
So, it works.
Also I set the icons for the form to be like a usual contact icons.
2. I published my Form in Personal Folder Library as "MyContact".
3. I saved the current Contact with the FileAs = “Test” and closed it.
4. In the Contact context menu->Properties->Forms->Manage…-> I have deleted the old MyContact form from the list of available forms. This is important to do!!! Then I copied new MyContact from Personal Forms.
5. Then I created several Contacts using MyContact form. In all those forms I modified my user fields to see if VBScript works.
6. I opened MyContact form, moved fields on the page and repeated the step 2.
7. Important! I repeated the step 4 to replace the old MyContact forms to a new one.
8. All the forms I’ve created in step 5 now have new design!!! But… the form “Test” (the very first ancestor) not! I just wonder why…

Hope this will help a little.

0
 
reddarinCommented:
I reckon icenet has left us forever.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now