Public Sub SplitAdjustment()

    Dim oGift As CGift
    Dim oAdjServ As CAdjustmentServer
    Dim oAdj As IBBAdjustment
   
    Set oGift = New CGift
    oGift.Init REApplication.SessionContext
    oGift.Load 2033
   
    Set oAdjServ = New CAdjustmentServer
    oAdjServ.Init REApplication.SessionContext, oGift
    Set oAdj = oAdjServ.AddAdjustment
   
    With oAdj
   
        .Splits.Remove 1

        With .Splits.Add
            .Fields(GIFTSPLIT_fld_Fund) = "Computer Lab Fund"
            .Fields(GIFTSPLIT_fld_Amount) = 0.5
        End With
       
        With .Splits.Add
            .Fields(GIFTSPLIT_fld_Fund) = "Science Center Fund"
            .Fields(GIFTSPLIT_fld_Amount) = 0.5
        End With
       
    End With
   
    oAdjServ.Save
   
    oAdjServ.Closedown
    Set oAdjServ = Nothing
   
    Set oAdj = Nothing
   
    oGift.Closedown
    Set oGift = Nothing

End Sub

Blackbaud provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with Microsoft Visual Basic and the tools used to create and debug procedures.  Blackbaud Customer Support can help explain the functionality of a particular procedure but they will not modify, or assist you with modifying, these examples to provide additional functionality.  If you are interested in learning more about VBA and API modules, contact our Sales department at solutions@blackbaud.com.