Microsoft KB Archive/161655

= TMGR: GetObject Returns Error If Team File Is Opened =

Article ID: 161655

Article Last Modified on 8/17/2005

-

APPLIES TO


 * Microsoft Team Manager 1.0 Standard Edition

-



This article was previously published under Q161655



SYMPTOMS
When you access a team file through OLE Automation, you may receive the following error message:

is currently in use.

Try again later when file is no longer in use.



CAUSE
You used the following syntax for the GetObject method Set oTeam = GetObject(" ","TeamManager.Application") where represents the full path and name of the team file, and the team file is currently open on you computer.

When you use this syntax and the team file is already open, Microsoft Team Manager tries to open a second instance of the file. This is not allowed because Microsoft Team Manager does not allow multiple instances of a file.



RESOLUTION
Use either one of the following syntax: Set oTeam = GetObject("pathname") -or- Set oTeam = GetObject(,"TeamManager.Application)

Additional query words: Ole

Keywords: kberrmsg KB161655

-

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

© Microsoft Corporation. All rights reserved.