MergeAccount Method
Description
Merges all of the assignments, status reports, and other information from one account to another account in Microsoft Office Project Server 2003, using the Project Server security object.
Syntax
Function MergeAccount( _
ByVal lSrcResID As Long, _
ByVal lDestResID As Long _
) As Long
Parameters
Parameter | Description |
---|---|
lSrcResID |
Required Long. The source account, as in MSP_WEB_RESOURCES.WRES_ID. |
lDestResID |
Required Long. The destination account, as in MSP_WEB_RESOURCES.WRES_ID. |
Return Value
The MergeAccount method returns HRESULT as a Long (4-byte integer) value that indicates success (0) or failure (any other value).
Example
The following example merges account 121 into account 122. The example is for Microsoft Visual Basic 6.0.
Dim lResult as Long
Set oSec = CreateObject("PjSvrSecurity.PjSvrSecurity")
oSec.SetDBConnection "ProjectServer"
lResult = oSec.MergeAccount(121, 122)
Set oSec = Nothing