Crystal Reports
--
Questions
--
Followers
Top Experts
I need to know HOW to link the CLASS table to the TRANSACTION table as I'm creating a Financial Statement that requires a CLASS breakdown.
Which tables are required to accomplish the LINK....???
Thanks
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
http://doc.qodbc.com/qodbc/20/tables/table_info_all_us.html
http://doc.qodbc.com/qodbc/Qodbc_20_us.html
mlmcc
http://doc.qodbc.com/qodbc/20/tables/table_relations_us0957.html?trelations_id=10&tn_us=TRUE
Transaction relationships
http://doc.qodbc.com/qodbc/20/tables/table_relations_us1ced.html?trelations_id=123&tn_us=TRUE
Class seems to be linked through the other tables like Invoice, Sales, etc
mlmcc
Do you need to create the reports from QuickBooks tables or can you use sp_ProfitAndLossByClass like this:
sp_report ProfitAndLossByClass parameters datefrom={d'2009-10-01'},d
If you need only specific classes, there is also:
sp_report ProfitAndLossStandard show text,label,amount_1 as amount parameters datefrom={d '2009-10-01'},dateto={d '2009-10-31'} ,returnrows='All',ClassFil
I don't believe there is a link between transaction and class. I believe that is only accomplished through transactionLINES, for example: checkexpenseline, checkitemline, etc.
There is also:
sp_report TxnDetailByAccount show ReportSubtitle,date,text,r
This is a slow report (310 transaction for 5 days in my QuickBooks) but does include the Classes for transaction detail lines. I'm not an accountant so not sure if that works for you.
Otherwise, you may have to link class to transactionLINES, like checkexpenseline, checkitemline to build the financial statement.
Finally, if you need to subtract SPECIFIC classes from the ProfitAndLossStandard, I just posted this how-to using Microsoft Access 2002. It shows how to build a simple form to input DateFrom and DateTo and select the classes to exclude and then creates the P&L excluding those classes.
http://www.vbquick.com/2011/09/exclude-classes-from.html
I am assuming you know how to use the VBDemo to test these? If not, just type them into the Query box (or whatever they call it) and hit the Query button. (sorry if you know all this)
Hope this helps. I'm using 2009 so maybe you will find more functionality with 2011. Best of luck to you! ย :)






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
I need to know which specific TABLES....quickbooks DATA TABLES to use to LINK together the CLASS and the TRANSACTION tables.
I'm creating Customized Financial Statements from scratch....base....TABLES.
I know this can be done, just need to know if anyone has done it yet?
Again this is OUTSIDE of the Quickbooks program and hitting the QB tables directly.....using Crystal.
I would like to write the SQL script first then add that script to a Crystal Report....and format the report from there....etc..et.c..

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Crystal Reports
--
Questions
--
Followers
Top Experts
Crystal Reports is a business intelligence application from SAP SE. It is used to graphically design data connections and report layouts from a wide range of data sources including Excel spreadsheets, Oracle, SQL Server databases and Access databases, BusinessObjects Enterprise business views, and local file-system information. Report designers can place fields from these sources on the report design surface, and can also deploy them in custom formulas (using either BASIC or Crystal's own syntax), which are then placed on the design surface. Crystal Reports also supports subreports, graphing, and a limited amount of GIS functionality.