Repository.Crew.GetCrew

Returns a cCrew object, which represents a crew resource. Returns nothing if the crew does not exist or is not in the current project.

Syntax
.Crew.GetCrew(ID)

Parameters
ID
 * Required. Integer. The ID number of the crew to retrieve.

Example
This example assumes that a crew with ID #1 exists in the first project of a Synthesis repository. VBA MyRepository Repository MyRepository.ConnectToAccessRepository MyCrew cCrew MyRepository.Project.SetCurrentProject(1) MyCrew = MyRepository.Crew.GetCrew(1) CrewName String CrewID Integer CrewName = MyCrew.Name CrewID = MyCrew.ID  MsgBox ( & CrewName &  & CrewID)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyCrew cCrew MyRepository.Project.SetCurrentProject(1) MyCrew = MyRepository.Crew.GetCrew(1) CrewName String CrewID Integer CrewName = MyCrew.Name CrewID = MyCrew.ID  MsgBox ( & CrewName &  & CrewID)