Skip to main content
OCLC Support

UpdateHoldings

Find the syntax, use, parameters, return values, and an example for the UpdateHoldings macro command in Connexion client.
Syntax BOOL = CS.UpdateHoldings
Use to For an existing record or a workform, or records or workforms selected in a list, update holdings (add your OCLC institution symbol). For workform(s), add to WorldCat.
Or
When offline, marks local record(s) for batch update.

Same as using the Action > Holdings > Update Holdings menu command.
Parameters None
Comments
  • If you are logged on, this macro does the action immediately online.
  • If you are working with local file records while offline, this macro marks the current record, or records selected in a list, ready (R) to batch-process the action.
Return values TRUE if the action is successful, or FALSE if not.
Example Sub Main()

    Dim CS As Object
    Dim bResult As Integer

    Set CS = GetObject(,“Connex.Client”)

    If CS.IsOnline = False Then
        CS.Logon ““, ““, ““
    End If

    CS.Search “WC”, “#1”

    bResult = CS.UpdateHoldings

    If bResult = True Then
        MsgBox “Holdings were successfully updated”
    Else
        MsgBox “Holdings were not successfully updated”
    End If
End Sub

What this example does
  • Logs on to Connexion if not already logged on, using the default authorization and password you selected in Tools > Options > Authorizations tab.
  • Searches WorldCat for record number 1.
  • For record number 1, updates holdings (adds your OCLC institution symbol).
  • If the action is successful, returns the message: Holdings were successfully updated. If not, returns the message: Holdings were not successfully updated.