TMGR: GetObject Returns Error If Team File Is Opened (161655)



The information in this article applies to:

  • Microsoft Team Manager

This article was previously published under Q161655

SYMPTOMS

When you access a team file through OLE Automation, you may receive the following error message:
<filename> 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("<pathname>","TeamManager.Application")
				
where <pathname> 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)
				

Modification Type:MinorLast Reviewed:8/17/2005
Keywords:kberrmsg KB161655