Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : SP_Reports vs SELECTSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC Reporting Forum

 New Topic 
 
 Post Reply 
[1]  
 SP_Reports vs SELECT 
 Author   Message 
  aamillions 
  
 Group: Members 
 Posts: 12 
 Joined: 2008-05-06 
 Profile
 Posted : 2008-05-14 07:55:58

I am trying to create a query using odbc in Excel for QuickBooks data that will show transaction type, name, chart of account name and number, reference number, amount, memo, and class.  Using the table "Transaction" I can get all of this except the class. 

1) How do I get the class to show up?

2) Using the SP_Reports doesn't work for what we need since I need to be able to use parameters.  How can I start from scratch and get the same data that is in some of the SP_Reports?  For example, the SP_REPORT CUstomTxnDetail would give me what I need but I need to do it for specific data ranges. How can this be done?

Thank you.

 

 
AngelaA 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-05-14 08:13:48

The Transaction table doesn't show the Class but it can be seen using a CustomTxnDetail report instead like this:-

sp_report CustomTxnDetail show Text, Blank, TxnType, Date, RefNumber, Name, Memo,
Account, ClearedStatus, SplitAccount, Class, Debit, Credit, RunningBalance
parameters DateMacro = 'ThisMonthToDate', SummarizeRowsBy = 'TotalOnly',
OpenBalanceAsOf = 'Today'

All the predefined DateMacro options available to you are:
|All|Today|ThisWeek|ThisWeekToDate|ThisMonth|ThisMonthToDate|ThisQuarter|ThisQuarterToDate
|ThisYear|ThisYearToDate|Yesterday|LastWeek|LastWeekToDate|LastMonth|LastMonthToDate|LastQuarter
|LastQuarterToDate|LastYear|LastYearToDate|NextWeek|NextFourWeeks|NextMonth|NextQuarter|NextYear|

For specific date ranges you can do:-

sp_report CustomTxnDetail show Date, Account, AccountType, Amount, Class
parameters DateFrom = {d'2005-01-01'}, DateTo = {d'2005-12-31'},
SummarizeRowsBy = 'Account'

sp_report CustomTxnDetail show Date, Account, AccountType, Amount, Class
parameters DateFrom = {d'2006-01-01'}, DateTo = {d'2006-12-31'},
SummarizeRowsBy = 'Account'

sp_report CustomTxnDetail show Date, Account, AccountType, Amount, Class
parameters DateFrom = {d'2007-01-01'}, DateTo = {d'2007-12-31'},
SummarizeRowsBy = 'Account'

sp_report CustomTxnDetail show Date, Account, AccountType, Amount, Class
parameters DateFrom = {d'2008-01-01'}, DateTo = {d'2008-12-31'},
SummarizeRowsBy = 'Account'

See: How do I run a CustomTxnDetail Report? for more information.

 

  Top 
  aamillions 
  
 Group: Members 
 Posts: 12 
 Joined: 2008-05-06 
 Profile
 Posted : 2008-05-14 08:24:01
Thank you but the remaining question is can I get all of this info without using a sp_report?  I want to be able to run queries from scratch but don't see the tables. 

 
AngelaA 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-05-15 09:06:32
See What are the table relationships used in sp_report reports?  

  Top 
  aamillions 
  
 Group: Members 
 Posts: 12 
 Joined: 2008-05-06 
 Profile
 Posted : 2008-05-16 05:22:33

Which one of these stores the dollar amount activities for transactions?  I don't see any table that will give me dollar amount and info for ALL transactions and include class name/number.

CustomTxnDetail TextAccountName Account.FullName
CustomTxnDetail TextClassName Class.Name
CustomTxnDetail TextCustomerName Customer.Name
CustomTxnDetail TextCustomerTypeName CustomerType.Name
CustomTxnDetail TextEmployeeName Employee.Name
CustomTxnDetail TextItemName Item.Name
CustomTxnDetail TextPaymentMethodName PaymentMethod.Name
CustomTxnDetail TextSalesRepInitial SalesRep.Initial
CustomTxnDetail TextSalesTaxCodeDesc SalesTaxCode.Desc
CustomTxnDetail TextShipMethodName ShipMethod.Name
CustomTxnDetail TextTermsName Terms.Name
CustomTxnDetail TextVendorName Vendor.Name
CustomTxnDetail TextVendorTypeName VendorType.Name
CustomTxnDetail AccountFullName Account.FullName
CustomTxnDetail AccountListID Account.ListID

 

 
AngelaA 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-05-16 12:05:50
The table relationships used in sp_report reports look up only shows the List Tables. The transaction amounts are contained in each revelaant transaction type. Unlike many accounting systems, QuickBooks doesn't have a General Ledger Transaction (GLTran) table which means it's very hard to assemble all the transactions in a single listing.  

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to