<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<title><![CDATA[FLEXquarters.com Limited]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/]]></link>
<description />
<generator><![CDATA[Kayako case v4.66.2]]></generator>
<item>
<title><![CDATA[[QODBC-ALL] How to create sp_reports using Microsoft Excel]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2996]]></link>
<guid isPermaLink="false"><![CDATA[f40438b554cc0e3d96ee6064c5798f55]]></guid>
<pubDate><![CDATA[Wed, 14 Feb 2018 11:55:29 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[How to create sp_reports using Microsoft Excel
How to extract sp_reports using Microsoft Excel 
Open Microsoft Query in Excel
Open Microsoft Excel, get external data from Microsoft Query via Data Menu -&gt; "Get Data -&gt; From Other Sources-&gt;From M...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">How to create sp_reports using Microsoft Excel</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">How to extract sp_reports using Microsoft Excel </span></h3>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Open Microsoft Query in Excel</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Open Microsoft Excel, get external data from Microsoft Query via Data Menu -&gt; "Get Data -&gt; From Other Sources-&gt;From Microsoft Query" as below:<br /></span></p>
<p>Note: In recent versions of Microsoft Excel (including Excel 365), the Microsoft Query (Legacy) feature is hidden by default from the Get Data tab.<br /> Please refer to&nbsp;<a href="https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/3092" target="_blank">Troubleshooting - How to enable Microsoft Excel 365 - Legacy Microsoft Query</a>.</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;</span></p>
<p align="center"><img src="https://support.flexquarters.com/esupport/newimages/Book1%20-%20Microsoft%20Excel%20Preview_2012-10-31_12-42-25.png" alt="" /></p>
<p align="center"><img src="https://support.flexquarters.com/esupport/newimages/Book1%20-%20Microsoft%20Excel%20Preview_2012-10-31_12-42-48.png" alt="" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;">It will take some time to get the DSN list: </span></span></p>
<p align="center"><img src="https://support.flexquarters.com/esupport/newimages/Book1%20-%20Microsoft%20Excel%20Preview_2012-10-31_12-48-31.png" alt="" /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">In the "Choose Data Source" Window, Select the <strong>QuickBooks Data</strong> DSN you set up with the QODBC driver. This is one of our pre-installed DSN names or one that you have created. </span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/QReport/step1.png" alt="" /></p>
<p><strong>Note:</strong> Uncheck option "Use Query Wizard to Created/edit Queries" since we do not need to import any tables here.</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><strong>Note:</strong>&nbsp;Youed to Select the <strong>QuickBooks Online Data</strong> DSN. </span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/QReport/step2.png" alt="" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">C for using QuickBooks Online, reportlose the "Add Tables" window by clicking the "Close" button.</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/QReport/step3.png" alt="" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Press the "SQL" button to input your sp_report query as below. Here we take a BalanceSheetDetail report as an example:</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/QReport/step4.png" alt="" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">sp_report BalanceSheetDetail parameters DateMacro = 'ThisMonthToDate'</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/QReport/step5.png" alt="" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Click the "OK" button to close the warning message:</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/QReport/step6.png" alt="" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Press Execute button to get results in Microsoft Query:</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/QReport/step7.png" alt="" /></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Return Records to Excel Spreadsheet</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Select Menu File -&gt; Return Data to Microsoft Excel to return records to Excel Spreadsheet.</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/QReport/step8.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/QReport/step9.png" alt="" /></p>
<p>Also, Refer:</p>
<p><a href="https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2369" target="_blank">How to use the QuickBooks Reporting Engine with QODBC</a></p>
<p><a href="https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2712" target="_blank">How to use the QuickBooks Reporting Engine with QODBC Online</a></p>
<h3>&nbsp;</h3>
<p>&nbsp;</p>
<p>Tags: QuickBooks Online, QBO, Excel, MS Query, QODBC Online, Sp_reports, Balance sheet detail</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Excel only returning Amount_1 and not Amount_1 through Amount_12.]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2992]]></link>
<guid isPermaLink="false"><![CDATA[24b43fb034a10d78bec71274033b4096]]></guid>
<pubDate><![CDATA[Mon, 22 Jan 2018 09:22:51 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Excel only returning Amount_1 and not Amount_1 through Amount_12.
Problem Description:
I am working in Excel. I have set up three pass-through queries and had them work on referencing cells for DateFrom and DateTo parameters. The quer...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Excel only returning Amount_1 and not Amount_1 through Amount_12.</span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>I am working in Excel. I have set up three pass-through queries and had them work on referencing cells for DateFrom and DateTo parameters. The queries were SummarizeColumnsBy by Month.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/Amt12/step1.png" alt="" /></p>
<p>The queries suddenly stopped working, only returning Amount_1 and not Amount_1 through Amount_12.</p>
<p>If I manually put the date in the command text, all 12 months will return.</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>Please ensure that you pass both the dates (i.e., start date and end date) in the parameter value. There should be 12 months difference between the two dates to get all the 12-month amount.</p>
<p>Also, please ensure that you pass the date in the correct format through the parameter.</p>
<p>Please use the below format &amp; check again:</p>
<p>YYYY-MM-DD</p>
<p>For Example:</p>
<p>DateFrom: 2017-01-01</p>
<p>DateTo: 2017-12-31</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to Use Prompted Date Ranges in MS Excel with sp_reports]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2991]]></link>
<guid isPermaLink="false"><![CDATA[c5c1cb0bebd56ae38817b251ad72bedb]]></guid>
<pubDate><![CDATA[Fri, 19 Jan 2018 09:14:33 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How to Use Prompted Date Ranges in MS Excel with sp_reports
Problem Description:
I am using QODBC for exporting QuickBooks reports in MS Excel. I am using the BalanceSheetStandard report for specific date ranges as below.
sp_report B...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How to Use Prompted Date Ranges in MS Excel with sp_reports</span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>I am using QODBC for exporting QuickBooks reports in MS Excel. I am using the BalanceSheetStandard report for specific date ranges as below.</p>
<p>sp_report BalanceSheetStandard show Text, Label, Amount parameters DateFrom = {d'2020-01-01'},DateTo = {d'2020-06-30'}, SummarizeColumnsBy = 'TotalOnly'</p>
<p>I want to pass the date value in the parameter. So, I can execute reports for a specific date period without changing the query.</p>
<p>Do you know how to pass a value from Excel to the DateFrom and DateTo parameters?</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>Please follow the below steps for using Prompted Date Ranges in MS Excel with sp_reports.</p>
<p>First, You need to export the report to MS Excel.</p>
<p>Please refer to how<a href="https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2405" target="_blank">&nbsp;to create sp_reports using Microsoft Excel 2007</a>&nbsp;to export reports in MS Excel.</p>
<p>I have already exported the BalanceSheetStandard report to MS Excel.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/ExcelPara/step1.png" alt="" /></p>
<p>On the "Data" tab, click the "Queries &amp; Connections" button in the Excel sheet.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/ExcelPara/step2.png" alt="" /></p>
<p>In the Workbook Connection Window, Right-click on the connection name &amp; click the "Properties" button to view detailed information:</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/ExcelPara/step3.png" alt="" /></p>
<p>Navigate to the Definition tab. You can view the Connection string and Command text.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/ExcelPara/step4.png" alt="" /></p>
<p>In the Excel command text, You need to replace the actual date value with the question mark for the parameter you want &amp; save it by clicking the "OK" button.</p>
<p>For Example: sp_report BalanceSheetStandard show Text, Label, Amount parameters DateFrom = ?,DateTo = ?, SummarizeColumnsBy = 'TotalOnly'</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/ExcelPara/step5.png" alt="" /></p>
<p>Now, whenever you Refresh Data:</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/ExcelPara/step6.png" alt="" /></p>
<p>Excel will prompt for the parameter value.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/ExcelPara/step7.png" alt="" /></p>
<p>Please use the below format for providing the date value.</p>
<p><strong>YYYY-MM-DD</strong></p>
<p>Please enter both parameter values one by one &amp; click "OK."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/ExcelPara/step8.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/ExcelPara/step9.png" alt="" /></p>
<p>The report data get refreshed with the parameter date value.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/ExcelPara/step10.png" alt="" /></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Serial Number/Lot Number Quantity On Hand does not match with the report in QuickBooks.]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2990]]></link>
<guid isPermaLink="false"><![CDATA[f6b5f8c32c65fee991049a55dc97d1ce]]></guid>
<pubDate><![CDATA[Fri, 19 Jan 2018 09:09:58 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Serial Number/Lot Number Quantity On Hand does not match the QuickBooks report.
Problem Description:
I recently ran into an issue when querying the inventory for each lot number. In QuickBooks, there is a report called "Lot Numbers in...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Serial Number/Lot Number Quantity On Hand does not match the QuickBooks report.</span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>I recently ran into an issue when querying the inventory for each lot number. In QuickBooks, there is a report called "Lot Numbers in Stock." You can click on the Lot Numbers on that report, and it opens a Quick View that shows the On Hand QTY for each Lot Number.</p>
<p>I've searched through the tables with the help of QODBC, and the only table I could find that appears to offer the information was the "BuildAssembly" table. However, the Quantity On Hand does not match what shows when I run the report in QuickBooks.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/LotNum/step1.png" alt="" /></p>
<p>Could you please point me in the right direction to where I can query this information using QODBC?</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>I am not sure How the "Lot Number In Stock" or "Serial Number In Stock" report is showing QuantityOnHand &amp; which table it is using. You can verify QuantityOnHand from BuildAssembly through QuickBooks UI &amp; QODBC, which will be identical.</p>
<p>The BuildAssembly table will show QuantityOnHand details when Assembly was built. It will not conduct the current Quantity as shown in the report.</p>
<p>Also, I'm sorry to inform you that the "Lot Number In Stock" or "Serial Number In Stock" report is not available through the Intuit SDK, so they are not available through QODBC.</p>
<p>QODBC is an ODBC driver for QuickBooks. It uses the QuickBooks SDK to communicate with QuickBooks, which means if Intuit doesn't expose one feature to the application in SDK, QODBC could not do it either.</p>
<p>Refer: <a href="https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2717" target="_blank">How to export QuickBooks data not available in QODBC</a></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How can I extract Budget data]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2986]]></link>
<guid isPermaLink="false"><![CDATA[769675d7c11f336ae6573e7e533570ec]]></guid>
<pubDate><![CDATA[Tue, 16 Jan 2018 11:10:32 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How can I extract Budget data
Problem Description:
I'm trying to extract QuickBooks budget data to SQL for reporting purposes. However, I don't see any tables that would hold the budget. My research is telling me this may not be possi...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How can I extract Budget data</span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>I'm trying to extract QuickBooks budget data to SQL for reporting purposes. However, I don't see any tables that would hold the budget. My research is telling me this may not be possible. Can someone please tell me how I can extract Budget data?</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>We are sorry to inform you that the Budget table is unavailable through the Intuit SDK, so budget-related information is unavailable through QODBC.</p>
<p>QODBC is an ODBC driver for QuickBooks. QODBC uses the Intuit QuickBooks SDK to communicate with QuickBooks, which means if Intuit doesn't expose the field/table/feature to the application in SDK, QODBC could not do it either.</p>
<p>Refer: <a href="https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2717" target="_blank">How to export QuickBooks data not available in QODBC</a></p>
<p>You can refer Budget related reports for Budget details.</p>
<p>You can refer below reports.</p>
<p>sp_report BalanceSheetBudgetOverview show Amount_Title, Label, Amount parameters FiscalYear = 2015, BudgetCriterion = 'Accounts', SummarizeBudgetColumnsBy = 'Date', SummarizeBudgetRowsBy = 'Account'</p>
<p>sp_report BalanceSheetBudgetVsActual show Amount_Title, Budget_Title, Difference_Title, Percent_Title, Text, Label, Amount, Budget, Difference, Percent parameters FiscalYear = 2015, BudgetCriterion = 'Accounts,' SummarizeBudgetColumnsBy = 'Date,' SummarizeBudgetRowsBy = 'Account'</p>
<p>sp_report ProfitAndLossBudgetOverview show Amount_Title, Text, Label, Amount parameters FiscalYear = 2015, BudgetCriterion = 'Accounts', SummarizeBudgetColumnsBy = 'Date', SummarizeBudgetRowsBy = 'Account'</p>
<p>sp_report ProfitAndLossBudgetPerformance show Amount_Title, Text, Label, Amount parameters FiscalYear = 2003, BudgetCriterion = 'Accounts', SummarizeBudgetColumnsBy = 'Date', SummarizeBudgetRowsBy = 'Account'</p>
<p>sp_report ProfitAndLossBudgetVsActual show Amount_Title, Budget_Title, Difference_Title, Percent_Title, Text, Label, Amount, Budget, Difference, Percent parameters FiscalYear = 2015, BudgetCriterion = 'Accounts,' SummarizeBudgetColumnsBy = 'Date,' SummarizeBudgetRowsBy = 'Account'</p>
<p>Refer: To how<a href="https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2369" target="_blank">&nbsp;to use the QuickBooks Reporting Engine with QODBC</a> for more details.</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] Troubleshooting - Does sp_report supports Like query]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2955]]></link>
<guid isPermaLink="false"><![CDATA[b44afe91b8a427a6be2078cc89bd6f9b]]></guid>
<pubDate><![CDATA[Wed, 27 Sep 2017 10:06:19 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Does sp_report support Like query
Problem Description 1:
Does sp_report support "Like" in the parameter?
For example, sp_report CustomTxnDetail shows Text, Blank, TxnType, Date, RefNumber, Name, Memo, Account, ClearedStatus, SplitAcc...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Does sp_report support Like query</span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description 1:</span></span></h3>
<p>Does sp_report support "Like" in the parameter?</p>
<p>For example, sp_report CustomTxnDetail shows Text, Blank, TxnType, Date, RefNumber, Name, Memo, Account, ClearedStatus, SplitAccount, Debit, Credit, RunningBalance parameters AccountFullName Like '%Chase Credit Card%,' SummarizeRowsBy = 'TotalOnly.'</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution 1:</span></span></h3>
<p>You can use like in sp_report as below:</p>
<p>For example, sp_report CustomTxnDetail shows Text, Blank, TxnType, Date, RefNumber, Name, Memo, Account, ClearedStatus, SplitAccount, Debit, Credit, RunningBalance parameters SummarizeRowsBy = 'TotalOnly' where AccountFullName Like '%Chase Credit Card%.'</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description 2:</span></span></h3>
<p>On some sp_reports like OpenInvoices or SalesByCustomerDetail, I don't see where I can put the parameter for the sales rep.</p>
<p>Which one is the parameter for the Sales Rep?</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution 2:</span></span></h3>
<p>The SalesRep filter in OpenInvoices and SalesByCustomerDetail report is not available through the Intuit SDK, so they are not available through QODBC.</p>
<p>QODBC is an ODBC driver for QuickBooks. It uses the QuickBooks SDK to communicate with QuickBooks, which means if Intuit doesn't expose one feature to the application in SDK, QODBC could not do it either.</p>
<p>But, You can use the available column name in the sp_report by specifying with a where clause for filtering report data as below.</p>
<p>For Example, the SalesRep column is available in the OpenInvoices and SalesByCustomerDetail report, So you can use it in the sp_report query for filtering report data as below:</p>
<p>sp_report OpenInvoices show TxnType_Title, Date_Title, RefNumber_Title, PONumber_Title, Terms_Title, DueDate_Title, Aging_Title, OpenBalance_Title, Text, Blank, TxnType, Date, RefNumber, PONumber, Terms, DueDate, Aging, OpenBalance parameters DateMacro = 'Today' where SalesRep = 'John Doe.'</p>
<p>sp_report SalesByCustomerDetail show TxnType_Title, Date_Title, RefNumber_Title, Memo_Title, Name_Title, Item_Title, Quantity_Title, UnitPrice_Title, Amount_Title, RunningBalance_Title, Text, Blank, TxnType, Date, RefNumber, Memo, Name, Item, Quantity, UnitPrice, Amount, RunningBalance parameters DateMacro = 'ThisMonthToDate' where SalesRep = 'John Doe.'</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] How to Auto Add relationship Between two tables in Crystal Report using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2954]]></link>
<guid isPermaLink="false"><![CDATA[dc20d1211f3e7a99d775b26052e0163e]]></guid>
<pubDate><![CDATA[Thu, 21 Sep 2017 06:50:53 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[How to Auto Add relationship Between two tables in Crystal Report using QODBC
Problem Description:
How to Auto Add relationship Between two tables in Crystal Report using QODBC?
Solution:
A relationship can be extracted using the ODBC function "SQLFor...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">How to Auto Add relationship Between two tables in Crystal Report using QODBC</span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>How to Auto Add relationship Between two tables in Crystal Report using QODBC?</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>A relationship can be extracted using the ODBC function "SQLForeignKeys" or "SP_FOREIGNKEYS."</p>
<p>Usage: SP_FOREIGNKEYS tablename tablename</p>
<p>Instruction: Returns a record set of the detailed relationship information of two tables.</p>
<p>Example: sp_foreignkeys Customer Invoice</p>
<p>Crystal reports application automatically uses the relationship method and sprovides a user-friendly graphic interface to view the relationships between two or more tables.</p>
<p>To Auto Add relationship Between two tables in Crystal Report, Please create a new report in Crystal Report &amp; connect to QuickBooks Data through QODBC. Please refer to&nbsp;<a href="https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/1565" target="_blank">How to use QODBC with Crystal Reports</a> for connection detail.</p>
<p>I am assuming that you have referred above link &amp; connected to QuickBooks from Crystal Report using QODBC.</p>
<p>The connection was made with QuickBooks through "QuickBooks Data" DSN &amp; you can see the list of tables and windows list of tables available.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRAutoLink/step1.png" alt="" /></p>
<p>Select the table you want to add to the Crystal Report &amp; click the "&gt;" button. In this example, I am selecting the Customer &amp; Invoice table.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRAutoLink/step2.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRAutoLink/step3.png" alt="" /></p>
<p>The Customer &amp; Invoice table data is added to the Crystal Report. Please click the "Next" button for link tables.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRAutoLink/step4.png" alt="" /></p>
<p>Please select the "By Key" option &amp; Crystal Report will automatically link tables according to the Primary Key &amp; Foreign Key relationship between the two tables of QODBC.</p>
<p>You can see that the Invoice table's "CustomerRefListID" is related to the Customer table's "listed" field.</p>
<p>&nbsp;</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRAutoLink/step5.png" alt="" /></p>
<p>Suppose you select the "By Name" option. In that case, Crystal Reports will not consider the Primary Key &amp; Foreign Key relationship between two tables of QODBC &amp; it will link according to a similar column name. <br />For Example Invoice table's ClassRefListID with the Customer table's "listed."</p>
<p>The table fields are now available for selection in your report. Now, You can perform any operation on table data using Crystal Reports.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRAutoLink/step6.png" alt="" /></p>
<p>In this example, I have added the Customer table's Phone, Email, and Balance fields &amp; Invoice table's CustomerRefFullName, RefNumber, and SubTotal fields in the report.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRAutoLink/step7.png" alt="" /></p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to add multiple Filter on Parameter in sp_report]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2936]]></link>
<guid isPermaLink="false"><![CDATA[ec7f346604f518906d35ef0492709f78]]></guid>
<pubDate><![CDATA[Fri, 23 Jun 2017 07:35:35 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How to add multiple Filter on Parameter in sp_report
Problem Description:
I am using sp_report through QODBC &amp; I have noticed that using QuickBooks UI, we can add multiple TxnFilterTypes like 'Invoice,' 'CreditMemo,' and 'SalesRec...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How to add multiple Filter on Parameter in sp_report</span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>I am using sp_report through QODBC &amp; I have noticed that using QuickBooks UI, we can add multiple TxnFilterTypes like 'Invoice,' 'CreditMemo,' and 'SalesReciept,' etc.</p>
<p>How can I add the same using sp_report through QODBC?</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/TxnTypeFilter/step1.png" alt="" /></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>You can use multiple TxnFilterTypes as below:</p>
<p>TxnFilterTypes='Check', 'Invoice,' 'CreditMemo'</p>
<p>For Example:</p>
<p>sp_report ARAgingDetail show Text, Blank, TxnType, Date, RefNumber, PONumber, Name, Terms, DueDate, Aging, OpenBalance parameters DateMacro = 'Today,' TxnFilterTypes='Check,' 'Invoice,' 'CreditMemo,' AgingAsOf = 'Today.'</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/TxnTypeFilter/step2.png" alt="" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] How to export QuickBooks Invoices into MS Excel Report format]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2935]]></link>
<guid isPermaLink="false"><![CDATA[b6617980ce90f637e68c3ebe8b9be745]]></guid>
<pubDate><![CDATA[Wed, 21 Jun 2017 06:39:05 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ How to export QuickBooks Invoices into MS Excel Report format 
Problem Description:
I would like to know if QODBC will convert QuickBooks Pro Desktop invoices into MS Excel Report.
The attached invoice is similar to what we&nbsp;need to export to MS E...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> How to export QuickBooks Invoices into MS Excel Report format </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>I would like to know if QODBC will convert QuickBooks Pro Desktop invoices into MS Excel Report.</p>
<p>The attached invoice is similar to what we&nbsp;need to export to MS Excel. It doesn't have to be exact but needs to be able to show the descriptions, etc.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step1.png" alt="" /></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>You can export QuickBooks Invoices into MS Excel format using QODBC.</p>
<p>You can do it through VBA in MS Excel.</p>
<p>The first step is to download Invoice Template in MS Excel.</p>
<p>You can download the template by clicking "New," &amp; you can find the template under "Office.com Templates." Click on "Invoices" to see the list of Invoice templates.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step2.png" alt="" /></p>
<p>You can download the template by selecting the template as per your requirement &amp; click on the "Download" button to download the template. I have downloaded the "Service invoice (Garamond Gray Design)" template in this example.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step3.png" alt="" /></p>
<p>The invoice Template is available with sample data. You can modify the template as per your requirement.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step4.png" alt="" /></p>
<p>I have made changes to the template. I have changed some existing captions &amp; added ITEM &amp; ITEM DESCRIPTION. I have removed company information, logo, CUSTOMER ID, SALESPERSON, JOB, and LINE TOTAL.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step5.png" alt="" /></p>
<p>We will fill out this information dynamically by VBA code. We will add a button asking for the RefNumber of Invoice by entering RefNumber VBA code will fetch Invoice detail for particular RefNumber &amp; fill details in Invoice template.</p>
<p>Now we will add a button &amp; we will write code for the button click event. On button click, it fetches the Invoice from QuickBooks &amp; fills it in the template.</p>
<p>You can add a button from the Developer tab in MS Excel. If the Developer tab is unavailable, follow the steps below to display it.</p>
<p>Click the "File" tab, and click "Options."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step17.png" alt="" /></p>
<p>Click the "Customize Ribbon" category. In the "Main" Tabs list, select the "Developer" checkbox, and then click "OK."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step18.png" alt="" /></p>
<p>On the "Developer" tab, in the Controls group, click "Insert," and then under "ActiveX Controls," click "Command Button."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step6.png" alt="" /></p>
<p>A Command Button is added. I have renamed it to "Enter Invoice #." Double-click on the command button to write code.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step7.png" alt="" /></p>
<p>Write the below code for export QuickBooks Invoices into MS Excel Report format.</p>
<h3><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Application Source Code:</span></h3>
<div style="background: #ffffff; overflow: auto; width: auto; border: solid gray; border-width: .1em .1em .1em .8em; padding: .2em .6em;">
<pre style="margin: 0; line-height: 125%;"><span style="color: #008800; font-weight: bold;">Private</span> <span style="color: #008800; font-weight: bold;">Sub</span> <span style="color: #0066bb; font-weight: bold;">CommandButton1_Click</span>()

ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"F3"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"F4"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"A3"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B3"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"C3"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B4"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B5"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B6"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B9"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B10"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B11"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"D15"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"F15"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"F39"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"A18:A38"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B18:B38"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"C18:C38"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"D18:D38"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"E18:E38"</span>).ClearContents
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"F18:F38"</span>).ClearContents

<span style="color: #008800; font-weight: bold;">Const</span> adOpenStatic <span style="color: #333333;">=</span> <span style="color: #0000dd; font-weight: bold;">3</span>
<span style="color: #008800; font-weight: bold;">Const</span> adLockOptimistic <span style="color: #333333;">=</span> <span style="color: #0000dd; font-weight: bold;">3</span>
<span style="color: #008800; font-weight: bold;">Dim</span> oConnection
<span style="color: #008800; font-weight: bold;">Dim</span> oRecordset
<span style="color: #008800; font-weight: bold;">Dim</span> sMsg
<span style="color: #008800; font-weight: bold;">Dim</span> sConnectString
<span style="color: #008800; font-weight: bold;">Dim</span> sSQL
<span style="color: #008800; font-weight: bold;">Dim</span> InvNo <span style="color: #000000; font-weight: bold;">As</span> <span style="color: #333399; font-weight: bold;">String</span>

sConnectString <span style="color: #333333;">=</span> <span style="background-color: #fff0f0;">"DSN=Quickbooks Data;OLE DB Services=-2;"</span>

InvNo <span style="color: #333333;">=</span> InputBox(<span style="background-color: #fff0f0;">"Enter RefNumber:"</span>, <span style="background-color: #fff0f0;">"InvNo"</span>)
<span style="color: #008800; font-weight: bold;">If</span> (InvNo <span style="color: #333333;">=</span> <span style="background-color: #fff0f0;">""</span>) <span style="color: #008800; font-weight: bold;">Then</span>
    <span style="color: #008800; font-weight: bold;">Exit</span> <span style="color: #008800; font-weight: bold;">Sub</span>
<span style="color: #0066bb; font-weight: bold;">End</span> <span style="color: #008800; font-weight: bold;">If</span>
sSQL <span style="color: #333333;">=</span> <span style="background-color: #fff0f0;">"SELECT TxnID,CustomerRefFullName,TxnDate,RefNumber,BillAddressAddr1,BillAddressAddr2,BillAddressCity,BillAddressState,BillAddressPostalCode,ShipAddressAddr1,ShipAddressAddr2,ShipAddressCity,ShipAddressState,ShipAddressPostalCode,TermsRefFullName,DueDate,Subtotal,InvoiceLineItemRefFullName,InvoiceLineDesc,InvoiceLineQuantity,InvoiceLineRate,InvoiceLineAmount FROM InvoiceLine where RefNumber = '"</span> <span style="color: #333333;">&amp;</span> FnRef(InvNo) <span style="color: #333333;">&amp;</span> <span style="background-color: #fff0f0;">"'"</span>


<span style="color: #008800; font-weight: bold;">Set</span> oConnection <span style="color: #333333;">=</span> CreateObject(<span style="background-color: #fff0f0;">"ADODB.Connection"</span>)
<span style="color: #008800; font-weight: bold;">Set</span> oRecordset <span style="color: #333333;">=</span> CreateObject(<span style="background-color: #fff0f0;">"ADODB.Recordset"</span>)

oConnection.Open sConnectString
oRecordset.activeconnection <span style="color: #333333;">=</span> oConnection
oRecordset.Open sSQL

ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Activate
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"F3"</span>).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"TxnDate"</span>)
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"F4"</span>).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"RefNumber"</span>)
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"A3"</span>).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"CustomerRefFullName"</span>)
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B4"</span>).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"BillAddressAddr1"</span>)
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B5"</span>).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"BillAddressAddr2"</span>)
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B6"</span>).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"BillAddressCity"</span>) <span style="color: #333333;">+</span> <span style="background-color: #fff0f0;">" "</span> <span style="color: #333333;">+</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"BillAddressState"</span>) <span style="color: #333333;">+</span> <span style="background-color: #fff0f0;">" "</span> <span style="color: #333333;">+</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"BillAddressPostalCode"</span>)
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B9"</span>).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"ShipAddressAddr1"</span>)
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B10"</span>).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"ShipAddressAddr2"</span>)
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B11"</span>).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"ShipAddressCity"</span>) <span style="color: #333333;">+</span> <span style="background-color: #fff0f0;">" "</span> <span style="color: #333333;">+</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"ShipAddressState"</span>) <span style="color: #333333;">+</span> <span style="background-color: #fff0f0;">" "</span> <span style="color: #333333;">+</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"ShipAddressPostalCode"</span>)
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"D15"</span>).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"TermsRefFullName"</span>)
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"F15"</span>).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"DueDate"</span>)
ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"F39"</span>).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"SubTotal"</span>)

<span style="color: #008800; font-weight: bold;">Dim</span> count <span style="color: #000000; font-weight: bold;">As</span> <span style="color: #333399; font-weight: bold;">Integer</span>
count <span style="color: #333333;">=</span> <span style="color: #0000dd; font-weight: bold;">0</span>
<span style="color: #008800; font-weight: bold;">Do</span> <span style="color: #008800; font-weight: bold;">While</span> <span style="color: #008800; font-weight: bold;">Not</span> oRecordset.EOF
    ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"B"</span> <span style="color: #333333;">+</span> Trim(Str(<span style="color: #0000dd; font-weight: bold;">18</span> <span style="color: #333333;">+</span> count))).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"InvoiceLineItemRefFullName"</span>)
    ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"C"</span> <span style="color: #333333;">+</span> Trim(Str(<span style="color: #0000dd; font-weight: bold;">18</span> <span style="color: #333333;">+</span> count))).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"InvoiceLineDesc"</span>)
    ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"D"</span> <span style="color: #333333;">+</span> Trim(Str(<span style="color: #0000dd; font-weight: bold;">18</span> <span style="color: #333333;">+</span> count))).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"InvoiceLineQuantity"</span>)
    ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"E"</span> <span style="color: #333333;">+</span> Trim(Str(<span style="color: #0000dd; font-weight: bold;">18</span> <span style="color: #333333;">+</span> count))).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"InvoiceLineRate"</span>)
    ActiveWorkbook.Sheets(<span style="background-color: #fff0f0;">"ServiceInvoice"</span>).Range(<span style="background-color: #fff0f0;">"F"</span> <span style="color: #333333;">+</span> Trim(Str(<span style="color: #0000dd; font-weight: bold;">18</span> <span style="color: #333333;">+</span> count))).Value <span style="color: #333333;">=</span> oRecordset.Fields(<span style="background-color: #fff0f0;">"InvoiceLineAmount"</span>)
    count <span style="color: #333333;">=</span> count <span style="color: #333333;">+</span> <span style="color: #0000dd; font-weight: bold;">1</span>
    oRecordset.MoveNext
<span style="color: #008800; font-weight: bold;">Loop</span>

oRecordset.Close
<span style="color: #008800; font-weight: bold;">Set</span> oRecordset <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">Nothing</span>
oConnection.Close
<span style="color: #008800; font-weight: bold;">Set</span> oConnection <span style="color: #333333;">=</span> <span style="color: #008800; font-weight: bold;">Nothing</span>

<span style="color: #008800; font-weight: bold;">End</span> <span style="color: #008800; font-weight: bold;">Sub</span>
</pre>
</div>
<p align="center">&nbsp;</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step8.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step9.png" alt="" /></p>
<p>We need to add the below function for passing the RefNumber parameter value in the query.</p>
<div style="background: #ffffff; overflow: auto; width: auto; border: solid gray; border-width: .1em .1em .1em .8em; padding: .2em .6em;">
<pre style="margin: 0; line-height: 125%;"><span style="color: #008800; font-weight: bold;">Public</span> <span style="color: #008800; font-weight: bold;">Function</span> <span style="color: #0066bb; font-weight: bold;">Nz</span>(<span style="color: #008800; font-weight: bold;">ByVal</span> Value, <span style="color: #008800; font-weight: bold;">Optional</span> <span style="color: #008800; font-weight: bold;">ByVal</span> ValueIfNull <span style="color: #333333;">=</span> <span style="background-color: #fff0f0;">""</span>)

    Nz <span style="color: #333333;">=</span> IIf(IsNull(Value), ValueIfNull, Value)

<span style="color: #008800; font-weight: bold;">End</span> <span style="color: #008800; font-weight: bold;">Function</span>


<span style="color: #008800; font-weight: bold;">Function</span> <span style="color: #0066bb; font-weight: bold;">FnRef</span>(MyRef <span style="color: #000000; font-weight: bold;">As</span> <span style="color: #333399; font-weight: bold;">String</span>) <span style="color: #000000; font-weight: bold;">As</span> <span style="color: #333399; font-weight: bold;">String</span>

MyRef <span style="color: #333333;">=</span> Nz(MyRef, <span style="background-color: #fff0f0;">""</span>)
FnRef <span style="color: #333333;">=</span> MyRef
<span style="color: #008800; font-weight: bold;">End</span> <span style="color: #008800; font-weight: bold;">Function</span>
</pre>
</div>
<p>&nbsp;</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step10.png" alt="" /></p>
<p>You can check functionality by clicking on the "Enter Invoice #" button.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step11.png" alt="" /></p>
<p>MS Excel will prompt for RefNumber, as shown in the below sample. Enter a RefNumber value and click "OK."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step12.png" alt="" /></p>
<p>The report is available for particular RefNumber.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step13.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step14.png" alt="" /></p>
<p>You can print the report by clicking "Print." The Invoices in MS Excel report format are shown below.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step15.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSEINVRPT/step16.png" alt="" /></p>
<p>Please <a href="https://support.flexquarters.com/esupport/newimages/MSEINVRPT/InvoiceReport.zip">click here</a>&nbsp;to download Sample Report.</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - QODBC CustomSummary report not reconciling with QuickBooks CustomSummary.]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2934]]></link>
<guid isPermaLink="false"><![CDATA[5dc126b503e374b0e08231344a7f493f]]></guid>
<pubDate><![CDATA[Thu, 15 Jun 2017 10:23:28 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - QODBC CustomSummary report is not reconciling with QuickBooks CustomSummary. 
Problem Description:
I am running the QODBC report "CustomSummary" and comparing it to what should be the identical report in QuickBooks. I am encountering ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - QODBC CustomSummary report is not reconciling with QuickBooks CustomSummary. </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>I am running the QODBC report "CustomSummary" and comparing it to what should be the identical report in QuickBooks. I am encountering an issue where the Balance Sheet accounts report zero amounts (vs. the values I see in QuickBooks). In contrast, the Income Statement accounts report the correct amount.</p>
<p>Could you advise if there is a parameter I need to change when running the stored procedure?</p>
<p>The procedure I am running is as follows:</p>
<p>sp_report CustomSummary show Label, Amount parameters DateMacro = 'LastYear', SummarizeRowsBy = 'Account', SummarizeColumnsBy = 'Month', Calendar = 'FiscalYear', ReturnRows = 'All', ReturnColumns = 'All'</p>
<p>I have set up the below parameter QuickBooks UI.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CSRPT/step1.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CSRPT/step2.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CSRPT/step3.png" alt="" /></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>You are facing a mismatch issue because QuickBooks SDK is passing the parameter AccountFilterType='IncomeAndExpense' by default in the report query &amp; you have removed the Account Filter parameter from QuickBooks UI.</p>
<p>There is no option to remove the default account filter from the report query.</p>
<p>This is a limitation of the QuickBooks SDK that it does not support removing the default account filter.</p>
<p>QODBC is an ODBC driver for QuickBooks. It uses the QuickBooks SDK to communicate with QuickBooks, which means if Intuit doesn't expose one feature to the application in SDK, QODBC could not do it either.</p>
<p>We have raised enhancement request QBWG-47383 at Intuit's end to support removing the default account filter through QuickBooks SDK.</p>
<p>As a workaround, You need to follow the below procedure.</p>
<p>Run the report twice &amp; export it in two separate Excel sheets.</p>
<p>Refer: <a href="https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2405" target="_blank">How to create sp_reports using Microsoft Excel</a></p>
<p>1st using the filter AccountFilterType= 'BalanceSheet' (returning all rows and columns)</p>
<p>sp_report CustomSummary show Label, Amount parameters DateMacro = 'LastYear', SummarizeRowsBy = 'Account', SummarizeColumnsBy = 'Month', Calendar = 'FiscalYear', ReturnRows = 'All', ReturnColumns = 'All',AccountFilterType= 'BalanceSheet'</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CSRPT/step4.png" alt="" /></p>
<p>2nd, use the filter AccountFilterType='IncomeAndExpense' (returning all rows and columns).</p>
<p>sp_report CustomSummary show Label, Amount parameters DateMacro = 'LastYear', SummarizeRowsBy = 'Account', SummarizeColumnsBy = 'Month', Calendar = 'FiscalYear', ReturnRows = 'All', ReturnColumns = 'All',AccountFilterType= 'IncomeAndExpense'</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CSRPT/step5.png" alt="" /></p>
<p>Then join the two resulting datasets for the amount fields &amp; update based on the logic of the 1st dataset amount minus the 2nd dataset amount (as the IncomeAndExpense amounts need to have their signs reversed). This produces the same result as running the Custom Summary report out of the UI with no AccountType filter.</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] How to export QuickBooks Invoices into MS Access report format]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2933]]></link>
<guid isPermaLink="false"><![CDATA[25766f01628f3d34b93a36a2301dffc9]]></guid>
<pubDate><![CDATA[Thu, 15 Jun 2017 10:11:13 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ How to export QuickBooks Invoices into MS Access report format 
Problem Description:
I would like to know if QODBC will convert QuickBooks Pro Desktop invoices into Microsoft Access.
The attached invoice is similar to what we&nbsp;need to export to Ac...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> How to export QuickBooks Invoices into MS Access report format </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>I would like to know if QODBC will convert QuickBooks Pro Desktop invoices into Microsoft Access.</p>
<p>The attached invoice is similar to what we&nbsp;need to export to Access. It doesn't have to be exact but needs to be able to show the descriptions, etc.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step1.png" alt="" /></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>You can export QuickBooks Invoices into MS Access report format using QODBC.</p>
<p>The first step is to create a new MS Access database &amp; link the InvoiceLine table to MS Access.</p>
<p>Open MS Access. You can find it via Windows Start-&gt;All Programs-&gt;Microsoft Office.</p>
<p>&nbsp;</p>
<p>A default database filename, Database1, appears in the box. You can edit this to a more relevant name, such as QuickBooks Link. accdb. Save the file as type "Microsoft Office Access Databases."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step2.png" alt="" /></p>
<p>Then Click "Create" to create a blank database.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step3.png" alt="" /></p>
<p>After the new database is created, Navigate to "External Data":</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step4.png" alt="" /></p>
<p>Build a connection via External Data-&gt;More-&gt;ODBC Database, or directly click the ODBC database button on the External Data menu:</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step5.png" alt="" /></p>
<p>Under the Get External Data window, you will get two options. We will use "Link to the data source by creating a linked table":</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step6.png" alt="" /></p>
<p>After selecting the access method and clicking OK, you will get a Select Data Source window.</p>
<p>Select the <strong>QuickBooks Data</strong> DSN you set up with the QODBC driver. This can be one of our pre-installed DSN names or one that you have created. (Here, I choose the default DSN as the Example.)</p>
<p>For 64-bit MS Office, change QRemote DSN to <strong>QuickBooks Data 64-bit QRemote</strong>&nbsp;is the default DSN created when installing QODBC.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step7.png" alt="" /></p>
<p>Access will return a list of available tables in the Select Tables window. Please, select the tables you want to extract data from. In this example, I am selecting the InvoiceLine table.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step8.png" alt="" /></p>
<p>The linked table was added to MS Access.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step9.png" alt="" /></p>
<p>Now, We will design a new report from Create-&gt;Report Wizard</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step17.png" alt="" /></p>
<p>The Report Wizard shows showing Linked table &amp; available fields.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step18.png" alt="" /></p>
<p>Select the fields you want to show in the report &amp; click "Next."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step19.png" alt="" /></p>
<p>Report Wizard showing selected fields. Click "Next" for more configuration.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step20.png" alt="" /></p>
<p>You can sort records in ascending or descending order up to four fields &amp; click "Next."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step21.png" alt="" /></p>
<p>Select report Layout &amp; click "Next."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step22.png" alt="" /></p>
<p>Insert the report name &amp; select "Modify the report's design," &amp; click "Finish" to design a report.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step23.png" alt="" /></p>
<p>The report design window is opened &amp; Drag the table field into the report as per your requirement &amp; design the information.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step24.png" alt="" /></p>
<p>Select table field assigns a group to table fields by clicking the "Add a Group" button.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step25.png" alt="" /></p>
<p>The select field for Group. In this example, I have selected "TxnID" all group fields are grouped for a particular TxnID.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step26.png" alt="" /></p>
<p>The Group is created. Click "More."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step29.png" alt="" /></p>
<p>Select "With a header section" &amp; "With a footer section" to enable Group Header &amp; Footer.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step27.png" alt="" /></p>
<p>If you want to print one invoice per page (i.e., Only one invoice on a single page), click on the group footer for TxnID &amp; set the Force New Page property box drop-down arrow, and select Before Section.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step28.png" alt="" /></p>
<p>The report is designed. You can add labels &amp; assign a group to table fields. You can view the information by clicking on "View."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step12.png" alt="" /></p>
<p>The actual report will look as below in View mode.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step13.png" alt="" /></p>
<p>You can select "Print Preview" mode to see all Invoice reports.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step14.png" alt="" /></p>
<p>The Invoices in MS Access report format are shown below.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step15.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/MSAINVRPT/step16.png" alt="" /></p>
<p>Please <a href="https://support.flexquarters.com/esupport/newimages/MSAINVRPT/InvoiceReport.zip">click here</a>&nbsp;to download Sample Report.</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] How to export QuickBooks Invoices into Crystal Report format]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2932]]></link>
<guid isPermaLink="false"><![CDATA[c429429bf1f2af051f2021dc92a8ebea]]></guid>
<pubDate><![CDATA[Thu, 15 Jun 2017 09:54:51 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ How to export QuickBooks Invoices into Crystal Report format 
Problem Description:
I would like to know if QODBC will convert QuickBooks Pro Desktop invoices into Crystal Reports.
The attached invoice is similar to what we&nbsp;need to export to Cryst...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> How to export QuickBooks Invoices into Crystal Report format </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>I would like to know if QODBC will convert QuickBooks Pro Desktop invoices into Crystal Reports.</p>
<p>The attached invoice is similar to what we&nbsp;need to export to Crystal Report. It doesn't have to be exact but needs to be able to show the descriptions, etc.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step1.png" alt="" /></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>You can export QuickBooks Invoices into Crystal Report format using QODBC.</p>
<p>The first step is to create a new report.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step2.png" alt="" /></p>
<p>The Database Expert Window will be open. Expand the "Create New Connection" Folder:</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step3.png" alt="" /></p>
<p>Expand the "ODBC (RDO)" Folder:</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step4.png" alt="" /></p>
<p>The following screen will appear. Select "QuickBooks Data" DSN and Click "Next," finally click "Finish" on this screen:</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step5.png" alt="" /></p>
<p>There is no UserID and Password required for connecting QuickBooks Data using QODBC. So you can click "Finish" directly.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step6.png" alt="" /></p>
<p>A list of QuickBooks tables will appear and is ready for selection:</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step7.png" alt="" /></p>
<p>Crystal Report will return a list of available tables in the Select Tables window. Please, select the tables you want to extract data from. In this example, I am selecting the InvoiceLine table.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step8.png" alt="" /></p>
<p>For the table added to Crystal Report, click "Next" to add table fields in the report.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step9.png" alt="" /></p>
<p>The Report Wizard shows showing table &amp; available fields.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step33.png" alt="" /></p>
<p>Now, Select the field which you want to show in the report by clicking the "&gt;" button &amp; click "Next."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step10.png" alt="" /></p>
<p>Add group information to the report. We will group data by selecting the TxnID field and, clicking the "&gt;" button, then clicking "Finish."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step11.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step12.png" alt="" /></p>
<p>The report designer will show selected fields.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step13.png" alt="" /></p>
<p>Now, We will add Customer details, Billing &amp; Shipping details, TxnDate, RefNumber, Terms, and DueDate in the Group Header section. We will add InvoiceLine information (i.e., Item, Description, Quantity, Rate &amp; Amount field) in the detail section. We will add SubTotal in the Group Footer section.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step14.png" alt="" /></p>
<p>You can add the caption in report data using Text Object from Menu Insert &gt;&gt; Text Object.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step15.png" alt="" /></p>
<p>In this example, I have added the below Text Objects.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step16.png" alt="" /></p>
<p>You can draw the box in the report using Menu Insert &gt;&gt; Box.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step17.png" alt="" /></p>
<p>In this example, I have drawn a box around the "Ship To" details</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step18.png" alt="" /></p>
<p>You can draw a line in the report using Line from Menu Insert &gt;&gt; Line.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step19.png" alt="" /></p>
<p>I have drawn the below line in the "Ship To" Box.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step20.png" alt="" /></p>
<p>Same way, I have drawn Box &amp; Line on other report details.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step21.png" alt="" /></p>
<p>If you want to print one invoice per page (i.e., Only one invoice on a single page), then select "Section Expert" &amp; click on the Group Footer, enable the "New Page After" drop-down arrow, and click "OK."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step22.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step23.png" alt="" /></p>
<p>You can view the report by clicking on the "Preview" tab.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step24.png" alt="" /></p>
<p>The actual report will look like the below sample in Preview mode.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step25.png" alt="" /></p>
<p>You can add the RefNumber parameter in the report. So you can see the invoice for a particular Invoice#. You can add the RefNumber parameter in the information to limit the records or view a single invoice.</p>
<p>You can add parameters by right-clicking on "Parameter Fields" &amp; click "New."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step26.png" alt="" /></p>
<p>Insert the parameter name, Choose "Static" as a list of values &amp; choose "RefNumber" in the value field and click "OK."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step27.png" alt="" /></p>
<p>Add a parameter to the report by dragging and dropping.</p>
<p>We need to link the RefNumber parameter with the RefNumber value in the report.</p>
<p>For linking, Right-click on "RefNumber" &amp; click "Select Expert...".</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step29.png" alt="" /></p>
<p>In the select expert window, select "is equal to" &amp; "{?RefNumber}" parameter &amp; click "OK."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step30.png" alt="" /></p>
<p>When you run the report, the crystal report will prompt for RefNumber, as shown in the sample below. Enter a RefNumber value and click "OK."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step31.png" alt="" /></p>
<p>The report available for particular RefNumber.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step32.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CRINVRPT/step34.png" alt="" /></p>
<p>Please <a href="https://support.flexquarters.com/esupport/newimages/CRINVRPT/InvoiceReport.zip">click here</a>&nbsp;to download Sample Report.</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to run ProfitAndLossBudgetOverview by Class report]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2922]]></link>
<guid isPermaLink="false"><![CDATA[6d19c113404cee55b4036fce1a37c058]]></guid>
<pubDate><![CDATA[Mon, 24 Apr 2017 11:40:13 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How to run ProfitAndLossBudgetOverview by Class report 
Typical Profit &amp; Loss Budget Overview By Class Report (for the current Fiscal Year to Date) in QuickBooks

Note: The QuickBooks Sample files set the QuickBooks date to Decem...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How to run ProfitAndLossBudgetOverview by Class report </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Typical Profit &amp; Loss Budget Overview By Class Report (for the current Fiscal Year to Date) in QuickBooks</span></span></h3>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step1.png" alt="" /></p>
<p><strong>Note:</strong> The QuickBooks Sample files set the QuickBooks date to December 15, 2021. The current Fiscal Year shown above is January 1 through December 15, 2021.</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Report Displayed in QODBC</span></span></h3>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Open Microsoft Query in Excel </strong></span></p>
<p><strong>Note</strong>: Make sure you have installed Microsoft Query Add-on first. To learn how to install Microsoft Query, please refer to <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2352" target="_blank">Microsoft Office with MS Query and QODBC</a>.</p>
<p><strong>Note</strong>: In recent versions of Microsoft Excel (including Excel 365), the Microsoft Query (Legacy) feature is hidden by default from the Get Data tab.<br /> Please refer to&nbsp;<a href="https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/3092" target="_blank">Troubleshooting - How to enable Microsoft Excel 365 - Legacy Microsoft Query</a>.</p>
<p>Please start Microsoft Excel &amp; Create a blank workbook.</p>
<p>Please select the "Data" tab and click "From Other Sources-&gt;From Microsoft Query."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step2.png" alt="" /></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Create a New Microsoft Query in Excel </strong></span></p>
<p>Select the DSN you want to use to connect to the QuickBooks file. (Here, I choose the default data source with a sample company file opened.)</p>
<p>&nbsp;</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step3.png" alt="" /></p>
<p><strong>Note:</strong> Uncheck option "Use Query Wizard to Created/edit Queries" since we do not need to import any QuickBooks tables here.</p>
<p>&nbsp;</p>
<p>Close the "Add Tables" window by clicking the "Close" button.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step4.png" alt="" /></p>
<p>Press the "SQL" button to input your sp_report query as below. Here we take a ProfitAndLossBudgetOverview report as an example:</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step5.png" alt="" /></p>
<p>sp_report ProfitAndLossBudgetOverview show Amount_Title, Text, Label, Amount parameters FiscalYear = 2021, BudgetCriterion = 'AccountsAndClasses', SummarizeBudgetColumnsBy = 'Class', SummarizeBudgetRowsBy = 'Account'</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step6.png" alt="" /></p>
<p>Press an OK button to get results in Microsoft Query:</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step7.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step8.png" alt="" /></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Return Records to Excel Spreadsheet</strong></span></p>
<p>Select Menu File -&gt; Return Data to Microsoft Office Excel to return records to Excel Spreadsheet.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step9.png" alt="" /></p>
<p>Choose how you want to import data into your workbook &amp; click "OK."</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step10.png" alt="" /></p>
<p>Data exported in the workbook.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step11.png" alt="" /></p>
<p><strong>Note:</strong>&nbsp;QuickBooks does not support creating a budget by class or other criteria for the Balance Sheet. So it is not available through QODBC reports (i.e., BalanceSheetBudgetOverview &amp; BalanceSheetBudgetVsActual).</p>
<p>Refer: <a href="https://community.intuit.com/questions/1548082-can-you-create-a-budget-for-balance-sheet-items-by-class" target="_blank">Can you create a budget for balance sheet items by class?</a></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>How to identify exported report data relation.</strong></span></p>
<p>Please refer below screenshot for exported report data relation.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step12.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step13.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step14.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step15.png" alt="" /></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/PLBOCL/step16.png" alt="" /></p>
<p>Also, Refer</p>
<p><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2369" target="_blank">How to use the QuickBooks Reporting Engine with QODBC Online</a></p>
<p><a href="http://qodbc.com/schema.htm" target="_blank">QODBC Report Parameter &amp; Schema details.</a></p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Is there a Sales journal report by class]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2896]]></link>
<guid isPermaLink="false"><![CDATA[e8f2779682fd11fa2067beffc27a9192]]></guid>
<pubDate><![CDATA[Tue, 07 Mar 2017 07:10:51 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Is there a Sales journal report by class
Problem Description:
For months I've been trying to get a Sales journal report. All I seem to get is either too detailed (by items) or too summary (sum by customer). I need a list of invoices by...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting - Is there a Sales journal report by class</span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>For months I've been trying to get a Sales journal report. All I seem to get is either too detailed (by items) or too summary (sum by customer). I need a list of invoices by class.<br /><br /> A report by class showing CLASS, Inv #, Inv DATE, CUSTOMER NAME, Inv TOTAL AMT).<br /><br /> All I seem to get is either too detailed (by items) or too summary (sum by customer). <br /><br /> I haven't been able to figure out how. I'm extracting this info from a GL data dump, but I have to use lots of code and work around.<br /><br /> Is there such a report?</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>You can refer SalesByCustomerDetail for the required details. Please refer to the sample query for the same.</p>
<p>For Example:</p>
<p>sp_report SalesByCustomerDetail show Text, Blank, TxnType, Date, RefNumber, Memo, Name, Item, Class, Quantity, UnitPrice, Amount, RunningBalance parameters DateMacro = 'ThisMonthToDate.'</p>
<p>Also, There are other Sales reports available you can refer below-listed reports:</p>
<p>SalesByCustomerSummary, SalesByItemDetail, SalesByItemSummary, SalesByRepDetail, SalesByRepSummary</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/SalesJ/step1.png" alt="" /></p>
<p>Also Refer: <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2369" target="_blank">How to use the QuickBooks Reporting Engine with QODBC</a></p>
<p>You can find most of the QuickBooks report using the above link. You can change report parameters as per your requirement.</p>
<p>Also, Refer <a href="http://www.qodbc.com/schema.htm" target="_blank">QODBC table &amp; report schema site</a> to get details about each report column and supported parameters.</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How do I run a Collections Report?]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2884]]></link>
<guid isPermaLink="false"><![CDATA[780965ae22ea6aee11935f3fb73da841]]></guid>
<pubDate><![CDATA[Wed, 04 Jan 2017 11:04:45 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How do I run a Collections Report?
Problem Description:
How do I run a Collections Report?
Solution:
A typical Collections Report in QuickBooks looks like this:

With QODBC, the same report can be generated using stored procedure r...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting - How do I run a Collections Report?</span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>How do I run a Collections Report?</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>A typical Collections Report in QuickBooks looks like this:</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CollRep/step1.png" alt="" /></p>
<p>With QODBC, the same report can be generated using stored procedure reports like this:</p>
<p>sp_report CollectionsReport show Text, Blank, TxnType, Date, RefNumber, PONumber, Terms, DueDate, Aging, OpenBalance parameters DateMacro = 'Today,' AgingAsOf = 'ReportEndDate.'</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/CollRep/step2.png" alt="" /></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to enable Detail rows for BalanceSheetDetail, GeneralLedger, Journal, ProfitAndLossDetail, TxnDetailByAccount reports]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2835]]></link>
<guid isPermaLink="false"><![CDATA[6775a0635c302542da2c32aa19d86be0]]></guid>
<pubDate><![CDATA[Thu, 13 Oct 2016 14:24:24 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How to enable Detail rows for BalanceSheetDetail, GeneralLedger, Journal, ProfitAndLossDetail, TxnDetailByAccount reports 
Problem Description:
 I am executing BalanceSheetDetail, GeneralLedger, Journal, ProfitAndLossDetail, and TxnDe...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How to enable Detail rows for BalanceSheetDetail, GeneralLedger, Journal, ProfitAndLossDetail, TxnDetailByAccount reports </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> I am executing BalanceSheetDetail, GeneralLedger, Journal, ProfitAndLossDetail, and TxnDetailByAccount reports &amp; it is showing summary information which earlier showed detailed information. Rows are now grouped as "--Multiple--."</span>&nbsp;</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">When you open the report from QuickBooks UI, you will notice the below message box.<br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/DetailRow/step1.png" alt="" border="0" /><br /><br />If a message box appears, values are shown as consolidating in the QuickBooks UI report, and the same is with an exported report through QuickBooks SDK.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Changing your report preference from QuickBooks UI to see detailed row reports would be best. To change your preference, navigate to Edit Menu -&gt; Preferences -&gt; Report &amp; Graphs -&gt; Company Preferences Tab. <br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/DetailRow/step2.png" alt="" border="0" /><br /><br />Uncheck the "Collapse Transactions" option &amp; click "OK."<br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/DetailRow/step3.png" alt="" border="0" /><br /><br />After changing the above option, you can get a detail row in the report in QuickBooks UI and the exported information through QuickBooks SDK.</span></p>]]></content:encoded>
</item>
</channel>
</rss>