Can't open form

J

Joel Allen

Hello,

My custom for will not open and it use to. I've done everything. Clear
cache, open it without code, etc...... When I make a table view with all
fields in it, all the data is there.

Please help.

Joel
 
S

sonomaenterprises

When you try to open the form what happens? Do you get an error message or
does it jsut not open. Will it open in design mode?
 
J

Joel Allen

Thanks for repsonding,

I have tasks in a task folder. Many of them are ok. A few tasks I am
having this problem. What happens is I go into a task, fill in a couple
fields, save and close. When I open the task the next time, I get the
error, "The custom form could not be opened. Outlook will use an Outlook
form instead." Then I click OK. Then I get another error - "Can't open
this item."

On other tasks, I open it, fill out those same fields, and it does not
corrupt the form. So I don't think it's the fields in particular.

Thank you very much for helping me.

-Joel
 
S

sonomaenterprises

Have you looked at the form with OutlookSpy? You can also try to reset the
message class to the custom form message class, generally when I see this
type of message (typically if a person enters data into a folder field via
the view) resetting the message class allows me to open the form.

Jack
 
J

Joel Allen

Oh. I'm sorry. Where can I can Outlook Spy? Can you tell me really quick
what it is?

Also, can you please tell me how to reset the message class? - By the way,
I don't add info from the table view- I locked that down so you have to open
the form.

I really apprieciate your help, I've been battling this for weeks!!! Thank
you Jack.

Joel
 
S

sonomaenterprises

OUtlook Soy is an invaluable tool for Outlook development it can be
downloaded from:
http://www.dimastr.com/outspy/

With OutlookSpy you can reset the messageclass, just select the problem
item, click on the item button on the toolbar and via the script set the
messageclass to what it should be.

Jack
 
J

Joel Allen

I'm very close.....

I open the item witht he Item button, then go to the script tab. Then I
guess I have to write some code to change the message class? Please help.
Thank you so much.

Joel
 
S

sonomaenterprises

Replace ??? with your custom form name. You can also set it back to the
standard Task for with "IPM.Task"

TaskItem.MessageClass = "IPM.Task.????"
TaskItem.Save
 
J

Joel Allen

I ran this:

TaskItem.MessageClass = "IPM.Task.Monster"
TaskItem.Save

and the error I got was:

Error exectuting script:

Line 1, Column 1

Any thoughts Jack?

-Joel
 
S

sonomaenterprises

How did you get to the script window? From the script editor on the toolbar
or from the script tab of the item.
 

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