Public Sub TestTuition()
    Dim oCharges As CSBCharges
    Set oCharges = New CSBCharges
    oCharges.Init FE_Application.SessionContext, True
    Dim oCharge As CSBCharge
   
    oCharges.FilterObject.FilterProperties(SBCHARGES_FilterProp_RecordID) = "456"
   
    Debug.Print oCharges.Count
   
    For Each oCharge In oCharges
        If oCharge.Fields(SBCHARGES_fld_ITEMDESCRIPTION) = "Tuition - Ten Payment Plan" Then
            Debug.Print oCharge.Fields(SBCHARGES_fld_DUEDATE)
            Debug.Print oCharge.Fields(SBCHARGES_fld_UNPAIDBALANCE)
           
        End If
       
        oCharge.CloseDown
        Set oCharge = Nothing
    Next oCharge
   
   
   
   
    oCharges.CloseDown
    Set oCharges = 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.