Problem with VBScript in a From and the Tableview

A

Alexander Brendel

Hallo ...

I have made an Outlook form (OL_XP) using User-defiened fields and use
Item_write to do some change after the user clicks Save in the form.
As long as the user useses the form to change the data, everything
works fine. but if somebody changes something in the table view, he
get an error.
My debugger tells me:

the object does not support this property or methode: (and than
follows the item.fieldname e.g. olContact.Department)

This is possibly due to the fact, i use following code to get then
active item:

Set myinspector = Application.ActiveInspector
Set olContact = Application.ActiveInspector.CurrentItem

There is no Activeinspector in the table view and so he doesn´t the
item.

My Question is now, if i can :
1. alter the code, so it works in the tableview, too
or
2. "lock" the tableview, so noone can change the data in the tableview

Thanks

Brendel, Alexander
 

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