Microsoft KB Archive/159386

= TMGR: Fields Not Available Through Automation for Summary Task =

Article ID: 159386

Article Last Modified on 8/17/2005

-

APPLIES TO


 * Microsoft Team Manager 1.0 Standard Edition

-



This article was previously published under Q159386



SYMPTOMS
When you try to access a task field through OLE Automation with a Task object that is a summary task, you may receive an OLE Automation error such as the following:

Run time error 1. There was an OLE automation error



MORE INFORMATION
When working with a collection of tasks from Team Manager through OLE Automation, certain task fields will not be available at the summary task level. Those fields are:   Conflict Deadline EarliestStart PeopleAssigned Priority Recurring StartonEarliestStart These fields are not available because, for example, summary tasks cannot have people assigned to them; therefore, the People Assigned field is not available.

When working with a Tasks collection that may contain summary tasks, you can use the following code to skip over summary task when accessing these fields: ' Where oTask is a task object. If Not oTask.Summary then      ' Checks to see if task is a summary ' task. MsgBox oTask.PeopleAssigned End If

Additional query words: 1.00

Keywords: KB159386

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.