QuickBooks Integrator: Chart of accounts

How do I get a list of accounts in QuickBooks?

Date Entered: 2/4/2005    Last Updated: 10/08/2013

The ObjSearch component can be used to retrieve a list of accounts from QuickBooks. Below is some sample code (VB) to accomplish this:
  Dim i As Integer
  
  ObjSearch1.Reset
  ObjSearch1.QueryType = qtAccountSearch
  ObjSearch1.MaxResults = 100

  ObjSearch1.Search
  ListBox.Clear

  For i = 0 To ObjSearch1.ResultCount - 1
    Account.QBResponseAggregate = ObjSearch1.ResultAggregate(i)
    'Now you can examine the Account object for the details
  Next i

We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at kb@nsoftware.com.