Customized Appointment form keeps reverting to default form

J

John E.

I have created a customized P2 page on an Appointment form in which I have
some List Boxes that are being populated by VBscript code with records from
an Xcel Spreadsheet. I also use a textbox with each list box setup with a
Keywords field as a data store where I then store the check box states from
the List boxes at time of saving so they are persistent on reopening of the
Appointment Item.
If I open one of the custom Appointment items from the Actions menu and then
complete the data in the item and save it...this all appears to work
normally. However when I open the saved item it reverts back to the default
Appointment form. I know this because I am showing the Message Class object
on my custom form and see it when I save it but it reverts back to
IPM.Appointment when I open it.
I thought I might have some cache problems but used the Forms Manager to
make sure the published form was only in my custom Calendar folder where
these items reside and that the casche was cleared for the folder. I
haven't published the form yet to Personal Forms Library because it isn't
working yet.
Can you advise me what may be causing this reversion to default from my
custom Appointment form???
BTW, the VBscript code works fine in a similar custom Contact form using the
same objects, and is the same code with necessary item/page changes in the
Appointment form, so I don't think it is a code problem.
 
S

Sue Mosher [MVP-Outlook]

There are many possible causes of one-off forms (which is what you seem to be experiencing). See http://www.outlookcode.com/d/formpub.htm#macro

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
J

John E.

Sue,
Again, thanks so much. It was a one-off problem. as you suspected The
referal you gave me enabled me to discover why. My problem was that I was
using the Country field from the Contact Item in my custom Appointment Item
which evidently was causing the one-off when I published. I was doing this
so I would have commonality of data accross different item classes (Contact,
Appointment, Journal Entry, et al) with this field. However, thru trial and
error I discovered that this Contact "Country" field was the one causing the
custom Appointment form to one-off...when I deleted this field and published
the problem went away.
Now I have two remaining problems due to this one-offing to solve, if you
could advise me best way to proceed:
1) Can I create a "New" text box field in the custom Appointment form
called "Country" and also use it in my custom Contact form (in lieu of the
normal Country field) and in my custom Journal Form to have commonality of
the data field in views/reports across records from all these Item classes?
My purpose is to have only one column named "Country" in views/reports that
will pick up the "Country" data entry from all of these item classes when I
create a Journal report that lists multiple activities from different item
classes.
2) I need to convert the message class of all the previous Appointment
items that were one-offed in my folder to the corrected custom form message
class. I studied the three options on how to do this at the link you pointed
me to. Can I use the Omsgclas.doc Word document utility described at
http://support.microsoft.com/kb/201089/EN-US/ to do this?? I am using OL2003
and the list of products it applies to only goes up to OL2002, but the last
review on this KB article #201089 was 12/27/04, so maybe it still works with
OL2003?? If not, what do you suggest to get all of my folder items to the
new custom form message class?
 
S

Sue Mosher [MVP-Outlook]

1) Can I create a "New" text box field in the custom Appointment form
called "Country" and also use it in my custom Contact form (in lieu of the
normal Country field) and in my custom Journal Form to have commonality of
the data field in views/reports across records from all these Item classes?

Yes, this should work. You will need to create the field independently in each of the three folders.
2) I need to convert the message class of all the previous Appointment
items that were one-offed in my folder to the corrected custom form message
class. I studied the three options on how to do this at the link you pointed
me to. Can I use the Omsgclas.doc Word document utility described at
http://support.microsoft.com/kb/201089/EN-US/ to do this??

No, because each item already has a one-off form embedded in it. You must remove that form first. See http://blogs.msdn.com/stephen_griffin/archive/2005/12/29/507991.aspx for a CDO 1.21 sample of how to do that. YOu can add an oMessage.Type = "IPM.Appointment.MyForm" statement to change the message class before you update the item.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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