Assign Task Item Company field value

  • Thread starter Thread starter seiscons
  • Start date Start date
S

seiscons

I am building a task form with a Company field and trying to fill the
field when creating a task for a particular contact using VBScript but
am unable to access the Company field. In VBA when I Set a variable to
a new Task item it does not have a Company property. Neither can I
find a Company property for a Task Item in the Object Browser. How can
I therefore load the field.

In VBScript if I add a Company field to a Task form and create a new
task then:

Set myInspector = application.ActiveInspector
Set myItem = myInspector.CurrentItem
myItem.Company = "Company Name"

it does not work as the Task item doesn't have that propery.

Tasks definately have a Company field and I have found a post by Sue
Mosher saying that this can be done but I haven't been able to locate a
code sample. Can annyone help please?

Seiscons
 
You must not have looked too hard at the object browser. The correct property name is Companies.
 
Back
Top