<?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-Desktop] Troubleshooting - No data returned - Unable to execute - InventoryStockStatusByItem ]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/3072]]></link>
<guid isPermaLink="false"><![CDATA[be767243ca8f574c740fb4c26cc6dceb]]></guid>
<pubDate><![CDATA[Thu, 13 Apr 2023 11:47:16 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[[QODBC-Desktop] Troubleshooting - No data returned - Unable to execute - InventoryStockStatusByItem&nbsp;&nbsp;&nbsp;
Problem Description
Upon pulling QuickBooks data into Microsoft Access, I didn&rsquo;t see any values (all blank) in the QuantityonOrde...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">[QODBC-Desktop] Troubleshooting - No data returned - Unable to execute - InventoryStockStatusByItem&nbsp;&nbsp;&nbsp;</span></h2>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description</span></h3>
<p>Upon pulling QuickBooks data into Microsoft Access, I didn&rsquo;t see any values (all blank) in the QuantityonOrder field of either the Item or ItemInventory tables from QuickBooks.</p>
<p>Sp_report InventoryStockStatusByItem show QuantityOnOrder<br />Sp_report PurchaseByItemDetail<br /><br />And I&rsquo;ve attached a screenshot of my results for both &ndash; each showing 0 results.<br /><br /></p>
<p>I am using QuickBooks 2023.</p>
<p>&nbsp;</p>
<p style="text-align: center;">&nbsp;<img src="https://support.flexquarters.com/esupport/newimages/3072/item detail rpt.png" alt="" width="818" height="541" /></p>
<p>&nbsp;&nbsp;</p>
<p>QuickBooks SDK Logs</p>
<p>20230411.111122 I 30056 SpecVersion Current version of qbXML in use: 16.0<br />20230411.111122 I 30056 QBSDKMsgSetHandler QUERY: General Summary Report<br />20230411.111140 E 30056 ReportHandler::BuildTheRetObject Unable to convert column desc for column 2 since it has value 210<br />20230411.111140 E 30056 ReportHandler::BuildTheRetObject Unable to set the column description, HRESULT=0x80004005<br />20230411.111140 I 30056 QBSDKMsgSetHandler Request 1 completed successfully.</p>
<p>&nbsp;</p>
<p>Response from QuickBooks SDK</p>
<p>&lt;QBXML&gt;<br /> &lt;QBXMLMsgsRs&gt;<br /> &lt;GeneralSummaryReportQueryRs requestID="1" statusCode="510" statusSeverity="Warn" statusMessage="Unable to return object." /&gt;<br /> &lt;/QBXMLMsgsRs&gt;<br />&lt;/QBXML&gt;</p>
<p>&nbsp;</p>
<p>I have tried QuickBooks Verify &amp; Rebuild the company file, but that did not resolve the issue.</p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solutions</span></h3>
<p>We have reported the issue to Intuit.&nbsp;Case 00129682: Unable to convert column desc for column 2 since</p>
<p>The issue is a bug in QuickBooks SDK - QuickBooks 2023.</p>
<p>Affected reports -&nbsp; InventoryStockStatusByItem, InventoryStockStatusByVendor &amp; InventoryValuationDetail</p>
<p>On May 26, 2023, the Intuit Team resolved the reported issue and released the fix for the issue.</p>
<p>Please update your QuickBooks to the latest release to fix the issue.</p>
<p>&nbsp;</p>
<p>Updates:</p>
<p>Apr 18, 2023 &amp;&nbsp;Apr 10, 2023 - Intuit Developer Support - "We didn't create a bug for this issue, this is a known issue. We are working on it."</p>
<p>"To unblock the customer as a workaround, we can disable the categories from the preferences and continue.</p>
<p>To locate the categories feature, go to edit-&gt;preferences-&gt;items&amp;<wbr />inventory-&gt; Company Preferences-&gt; under categorize items group box, uncheck "Activate categories". Impact of disabling this feature:&nbsp;<strong>Customer will go back to their items not being categorised as before</strong></p>
<p><br />Turning off the Categories feature from the preferences will not have any impact on the ability to connect to the database to read inventory or any items. They will lose the ability to use the feature benefits till the fix is live.</p>
<p>Note: Customers have an option to turn on/off Categories as per their requirements, it&rsquo;s not mandatory."</p>
<p>&nbsp;</p>
<p>Intuit Case ID:&nbsp;00129682</p>
<p>May 26, 2023&nbsp;&nbsp;- Intuit Developer Support - "The fix is live, you can use the stock status report with categories."</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br /><br /></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] Troubleshooting - Unable to execute update statement when using SQL Server 2019 linked server on Windows 11 or Windows Server 2019]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/3056]]></link>
<guid isPermaLink="false"><![CDATA[dc6e224a8d74ce03bf301152d6e33e97]]></guid>
<pubDate><![CDATA[Fri, 02 Sep 2022 13:46:35 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[[QODBC-ALL] Troubleshooting - Unable to execute update statement when using SQL Server 2019 linked server on Windows 11 or Windows Server 2019
Issue:
We&nbsp;recently upgraded our Windows OS to Windows 11 and SQL Server to 2019.
We can connect from SQL...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">[QODBC-ALL] Troubleshooting - Unable to execute update statement when using SQL Server 2019 linked server on Windows 11 or Windows Server 2019</span></h2>
<p><strong>Issue:</strong></p>
<p>We&nbsp;recently upgraded our Windows OS to Windows 11 and SQL Server to 2019.</p>
<p>We can connect from SQL Server to QODBC/QRemote.</p>
<p>We can execute select statements.</p>
<p>We are experiencing an issue when updating a record. This is working correctly in Windows 10 and SQL Server 2017. The following is the SQL statement we are using.</p>
<p>Update QRemote...Bill set Memo='Sent' where TxnID='12-1234-56789'</p>
<p>&nbsp;</p>
<p><strong>Reason:</strong></p>
<p>There are some changes in the standard ODBC API in Windows OS 11 or Windows Server 2019 when using SQL Server.</p>
<p>The issue is caused because QODBC received the SQL statement from SQL Server.<br />Update QODBC.Bill set Memo='Sent' where TxnID='12-1234-56789'<br />instead of<br />update QODBC.Bill set Memo='Sent' where TxnID='12-1234-56789'</p>
<p>&nbsp;</p>
<p><strong>Solution:</strong></p>
<p>The issue has been identified and resolved in QODBC build 346.</p>
<p>Please install the latest version of QODBC.</p>
<p>QODBC Desktop - <a href="https://qodbc.com/download">https://qodbc.com/download/desktop</a></p>
<p>QODBC Online - <a href="https://qodbc.com/online-download">https://qodbc.com/download/online</a></p>
<p>QODBC&nbsp;POS -&nbsp;<a href="https://qodbc.com/online-download">https://qodbc.com/download/pos</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] - Troubleshooting - Excel crash when using SQL statement with two inner joins along with unoptimized]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/3043]]></link>
<guid isPermaLink="false"><![CDATA[fc325d4b598aaede18b53dca4ecfcb9c]]></guid>
<pubDate><![CDATA[Wed, 21 Oct 2020 11:59:50 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - [QODBC-ALL] - Troubleshooting - Excel crashes when using a SQL statement with two inner joins, along with unoptimized 
Problem Description
I am using Microsoft Excel.
I am using the following SQL statement.
SELECT TransferInventoryLi...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting - [QODBC-ALL] - Troubleshooting - Excel crashes when using a SQL statement with two inner joins, along with unoptimized </span></h2>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am using Microsoft Excel.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am using the following SQL statement.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">SELECT TransferInventoryLine.TxnDate,<br />TransferInventoryLine.RefNumber,<br />TransferInventoryLine.FromInventorySiteFullName,<br />TransferInventoryLine.ToInventorySiteFullName,<br />InventorySite.SiteAddressAddr1,<br />InventorySite.SiteAddressAddr2,<br />InventorySite.SiteAddressAddr3,<br />InventorySite.SiteAddressAddr4,<br />InventorySite.SiteAddressCity,<br />InventorySite.SiteAddressState,<br />InventorySite.SiteAddressPostalCode,<br />InventorySite.SiteAddressCountry,<br />TransferInventoryLine.Memo,<br />TransferInventoryLine.TransferInventoryLineQuantityTransferred,<br />TransferInventoryLine.TransferInventoryLineItemRefFullName,<br />Item.Description<br />FROM (TransferInventoryLine unoptimized <br />INNER JOIN InventorySite unoptimized <br />ON TransferInventoryLine.ToInventorySiteListID = InventorySite.listen)<br />INNER JOIN Item <br />ON TransferInventoryLine.TransferInventoryLineItemRefListID = Item.ListID<br />WHERE (TransferInventoryLine.TxnDate={d'2020-09-15'})<br /><br /></span></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solutions</span></h3>
<p>We can reproduce the issue.&nbsp;The issue can be produced in&nbsp;QODBC build 336 and above.</p>
<p>We are working on fixing the issue.</p>
<p>As a workaround, please change the SQL statement.</p>
<p>SELECT TransferInventoryLine.TxnDate,<br />TransferInventoryLine.RefNumber,<br />TransferInventoryLine.FromInventorySiteFullName,<br />TransferInventoryLine.ToInventorySiteFullName,<br />InventorySite.SiteAddressAddr1,<br />InventorySite.SiteAddressAddr2,<br />InventorySite.SiteAddressAddr3,<br />InventorySite.SiteAddressAddr4,<br />InventorySite.SiteAddressCity,<br />InventorySite.SiteAddressState,<br />InventorySite.SiteAddressPostalCode,<br />InventorySite.SiteAddressCountry,<br />TransferInventoryLine.Memo,<br />TransferInventoryLine.TransferInventoryLineQuantityTransferred,<br />TransferInventoryLine.TransferInventoryLineItemRefFullName,<br />Item.Description<br />FROM TransferInventoryLine, InventorySite, Item <br />where TransferInventoryLine.ToInventorySiteListID = InventorySite.ListID <br />and TransferInventoryLine.TransferInventoryLineItemRefListID = Item.ListID<br />and TransferInventoryLine.TxnDate={d'2020-09-14'}</p>
<p><a href="https://support.flexquarters.com/esupport/index.php?/Tickets/Submit" target="_blank">Click here</a> to raise a support ticket and request if you still face the issue.</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to use PowerShell with QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2826]]></link>
<guid isPermaLink="false"><![CDATA[12311d05c9aa67765703984239511212]]></guid>
<pubDate><![CDATA[Thu, 01 Sep 2016 10:11:01 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[How to use PowerShell with QODBC
Download Sample
Sample Code for using QODBC DSN:
$connectstring = "DSN=QuickBooks Data;"$sql = "Select TOP 10 Name from Customer"$conn = New-Object System.Data.Odbc.OdbcConnection($connectstring)$conn.open()$cmd = New-O...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">How to use PowerShell with QODBC</span></h2>
<p><a href="http://support.flexquarters.com/esupport/newimages/PowerShell/DisplaySQL.zip">Download Sample</a></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Sample Code for using QODBC DSN:</span></h3>
<p>$connectstring = "DSN=QuickBooks Data;"<br /><br />$sql = "Select TOP 10 Name from Customer"<br /><br />$conn = New-Object System.Data.Odbc.OdbcConnection($connectstring)<br /><br />$conn.open()<br /><br />$cmd = New-Object system.Data.Odbc.OdbcCommand($sql,$conn)<br /><br />$da = New-Object system.Data.Odbc.OdbcDataAdapter($cmd)<br /><br />$dt = New-Object system.Data. data table<br /><br />$null = $da.fill($dt)<br /><br />$conn.close()<br /><br />$dt<br /><br /></p>
<p>&nbsp;</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerShell/step1.png" alt="" /></p>
<p>&nbsp;</p>
<h3><span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Script execution &amp; Result:</span></span></h3>
<p>Open Windows PowerShell (x86) from the Start menu: <br /><br /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerShell/step2.png" alt="" /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerShell/step3.png" alt="" /></p>
<p>Navigate to your PowerShell script folder: <br /><br /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerShell/step4.png" alt="" /></p>
<p><br />Run your PowerShell script: <br /><br /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerShell/step5.png" alt="" /></p>
<p>&nbsp;</p>
<p><br />Result: <br /><br /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerShell/step6.png" alt="" /></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Sample Code for using QRemote DSN:</span></h3>
<p>$connectstring = "DSN=QuickBooks Data QRemote;"<br /><br />$sql = "Select TOP 10 Name from Customer"<br /><br />$conn = New-Object System.Data.Odbc.OdbcConnection($connectstring)<br /><br />$conn.open()<br /><br />$cmd = New-Object system.Data.Odbc.OdbcCommand($sql,$conn)<br /><br />$da = New-Object system.Data.Odbc.OdbcDataAdapter($cmd)<br /><br />$dt = New-Object system.Data. data table<br /><br />$null = $da.fill($dt)<br /><br />$conn.close()<br /><br />$dt<br /><br /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerShell/step7.png" alt="" /></p>
<p><br />Please refer to how<a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2436">&nbsp;to configure QRemote</a>.</p>
<p>Please Note: If you have a 64-bit application, you must use QRemote 64-bit DSN "<strong>QuickBooks Data 64-bit QRemote.</strong>"</p>
<p>Also, Refer: <br /><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2439" target="_blank">QODBC Reports Architecture Mismatch Problem When Connecting</a></p>
<hr class="kbhr" />]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to Import QuickBooks data to SQL Server Database (Local Table)]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2814]]></link>
<guid isPermaLink="false"><![CDATA[8e987cf1b2f1f6ffa6a43066798b4b7f]]></guid>
<pubDate><![CDATA[Tue, 09 Aug 2016 16:02:01 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[How to Import QuickBooks data to SQL Server Database (Local Table)
First, you need to create a Linked Server in SQL Server.
For 32-bit SQL Server. Please refer to&nbsp;How to create Link Server with MS SQL 2005/2008/2012 32-bit Using QODBC/QRemote.
For...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">How to Import QuickBooks data to SQL Server Database (Local Table)</span></h2>
<p>First, you need to create a Linked Server in SQL Server.</p>
<p>For 32-bit SQL Server. Please refer to&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2514" target="_blank">How to create Link Server with MS SQL 2005/2008/2012 32-bit Using QODBC/QRemote</a>.</p>
<p>For 64-bit SQL Server. Please refer to&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2458" target="_blank">How to create Link Server with MS SQL 2005/2008/2012 64-bit Using QODBC/QRemote</a>.</p>
<p>&nbsp;</p>
<p>I have already created a linked server, "QRemote."</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step13.png" alt="" /></p>
<p>After creating a Linked Server, you need to create a stored procedure, which will read data from the Linked Server table &amp; write it into the SQL Server local table.</p>
<p>For storing Linked Server data in the local database. It would be best if you used the INSERT INTO SELECT query as below.</p>
<p>For Example:<br /><br />SELECT * INTO SQL_Local_TableName FROM YourLinkedServerName...TableName;</p>
<p>First, we will add a single table in the local database. After that, we will create a stored procedure for all tables</p>
<p>We will add an Account table in the local database with the table name as Tbl_Account.<br /><br />SELECT * INTO Tbl_Account FROM QRemote...Account</p>
<p><img src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step14.png" alt="" /></p>
<p>The Tbl_Account table is created for the local database with 105 records.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step15.png" alt="" /></p>
<p>Now we will query the local table Tbl_Account.<br />Select * from Tbl_Account<br />Data is available in the local database table.</p>
<p><img src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step16.png" alt="" /></p>
<p>Now, we will create a stored procedure that will read data from the Linked Server table &amp; write it into the SQL Server local table. <br /><br />In Object Explorer, connect to an instance of Database Engine and then expand that instance. <br /><br />Expand Databases, expand your database, and then expand Programmability. <br /><br />Right-click Stored Procedures and then click the New Stored Procedure.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step1.png" alt="" /></p>
<p>&nbsp;</p>
<p>We will create the stored procedure named Import_QODBC_Tables, which will check in the local database if the table exists. It will drop the table &amp; recreate the table &amp; read all the linked server tables &amp; create a new table in a local database.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step2.png" alt="" /></p>
<p><br /><br /></p>
<p>After writing the stored procedure, click on Execute to create the stored procedure.</p>
<p><img src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step3.png" alt="" /></p>
<p>Stored Procedure Created.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step4.png" alt="" /></p>
<p><strong>Stored Procedure Code:</strong></p>
<p>================================================================</p>
<p>USE [QODBC]<br />GO<br />/****** Object:&nbsp; StoredProcedure [dbo].[Import_QODBC_Tables]&nbsp;&nbsp;&nbsp; Script Date: 07/29/2016 00:28:38 ******/<br />SET ANSI_NULLS ON<br />GO<br />SET QUOTED_IDENTIFIER ON<br />GO<br /><br /><br />Create PROCEDURE [dbo].[Import_QODBC_Tables]<br /><br /><br />AS<br />begin<br /><br />IF OBJECT_ID (N'Tbl_Account', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_Account<br />&nbsp; &nbsp;<br />SELECT * INTO Tbl_Account&nbsp;&nbsp; &nbsp;FROM QRemote...Account<br /><br />IF OBJECT_ID (N'Tbl_AccountTaxLineInfo', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_AccountTaxLineInfo<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_AccountTaxLineInfo&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...AccountTaxLineInfo<br /><br />IF OBJECT_ID (N'Tbl_ARRefundCreditCard', N'U') IS NOT NULL <br />&nbsp; <br />Drop table&nbsp;Tbl_ARRefundCreditCard<br /><br />SELECT * INTO&nbsp; &nbsp; Tbl_ARRefundCreditCard&nbsp; &nbsp; FROM&nbsp;&nbsp; &nbsp;QRemote...ARRefundCreditCard<br /><br />IF OBJECT_ID (N'Tbl_ARRefundCreditCardRefundAppliedTo', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_ARRefundCreditCardRefundAppliedTo<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ARRefundCreditCardRefundAppliedTo&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ARRefundCreditCardRefundAppliedTo<br /><br />IF OBJECT_ID (N'Tbl_BarCode', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BarCode<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BarCode&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BarCode<br /><br />IF OBJECT_ID (N'Tbl_Bill', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_Bill<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Bill&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Bill<br /><br />IF OBJECT_ID (N'Tbl_BillExpenseLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BillExpenseLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BillExpenseLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BillExpenseLine<br /><br />IF OBJECT_ID (N'Tbl_BillItemLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BillItemLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BillItemLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BillItemLine<br /><br />IF OBJECT_ID (N'Tbl_BillLinkedTxn', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BillLinkedTxn<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BillLinkedTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BillLinkedTxn<br /><br />IF OBJECT_ID (N'Tbl_BillingRate', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BillingRate<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BillingRate&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BillingRate<br /><br />IF OBJECT_ID (N'Tbl_BillingRateLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BillingRateLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BillingRateLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BillingRateLine<br /><br />IF OBJECT_ID (N'Tbl_BillPaymentCheck', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BillPaymentCheck<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BillPaymentCheck&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BillPaymentCheck<br /><br />IF OBJECT_ID (N'Tbl_BillPaymentCheckLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BillPaymentCheckLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BillPaymentCheckLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BillPaymentCheckLine<br /><br />IF OBJECT_ID (N'Tbl_BillPaymentCheckLineLinkedTxn', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BillPaymentCheckLineLinkedTxn<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BillPaymentCheckLineLinkedTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BillPaymentCheckLineLinkedTxn<br /><br />IF OBJECT_ID (N'Tbl_BillPaymentCreditCard', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BillPaymentCreditCard<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BillPaymentCreditCard&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BillPaymentCreditCard<br /><br />IF OBJECT_ID (N'Tbl_BillPaymentCreditCardLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BillPaymentCreditCardLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BillPaymentCreditCardLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BillPaymentCreditCardLine<br /><br />IF OBJECT_ID (N'Tbl_BillPaymentCreditCardLineLinkedTxn', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BillPaymentCreditCardLineLinkedTxn<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BillPaymentCreditCardLineLinkedTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BillPaymentCreditCardLineLinkedTxn<br /><br />IF OBJECT_ID (N'Tbl_BillToPay', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BillToPay<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BillToPay&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BillToPay<br /><br />IF OBJECT_ID (N'Tbl_BuildAssembly', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BuildAssembly<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BuildAssembly&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BuildAssembly<br /><br />IF OBJECT_ID (N'Tbl_BuildAssemblyComponentItemLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_BuildAssemblyComponentItemLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_BuildAssemblyComponentItemLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...BuildAssemblyComponentItemLine<br /><br />IF OBJECT_ID (N'Tbl_Charge', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_Charge<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Charge&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Charge<br /><br />IF OBJECT_ID (N'Tbl_ChargeLinkedTxn', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_ChargeLinkedTxn<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ChargeLinkedTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ChargeLinkedTxn<br /><br />IF OBJECT_ID (N'Tbl_Check', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_Check<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Check&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote..."Check"<br /><br />IF OBJECT_ID (N'Tbl_CheckApplyCheckToTxn', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CheckApplyCheckToTxn<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CheckApplyCheckToTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CheckApplyCheckToTxn<br /><br />IF OBJECT_ID (N'Tbl_CheckExpenseLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CheckExpenseLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CheckExpenseLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CheckExpenseLine<br /><br />IF OBJECT_ID (N'Tbl_CheckItemLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CheckItemLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CheckItemLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CheckItemLine<br /><br />IF OBJECT_ID (N'Tbl_Class', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_Class<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Class&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Class<br /><br />IF OBJECT_ID (N'Tbl_ClearedStatus', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_ClearedStatus<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ClearedStatus&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ClearedStatus<br /><br />IF OBJECT_ID (N'Tbl_Company', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_Company<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Company&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Company<br /><br />IF OBJECT_ID (N'Tbl_CompanyActivity', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CompanyActivity<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CompanyActivity&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CompanyActivity<br /><br />IF OBJECT_ID (N'Tbl_CreditCardCharge', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CreditCardCharge<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CreditCardCharge&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CreditCardCharge<br /><br />IF OBJECT_ID (N'Tbl_CreditCardChargeExpenseLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CreditCardChargeExpenseLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CreditCardChargeExpenseLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CreditCardChargeExpenseLine<br /><br />IF OBJECT_ID (N'Tbl_CreditCardChargeItemLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CreditCardChargeItemLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CreditCardChargeItemLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CreditCardChargeItemLine<br /><br />IF OBJECT_ID (N'Tbl_CreditCardCredit', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CreditCardCredit<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CreditCardCredit&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CreditCardCredit<br /><br />IF OBJECT_ID (N'Tbl_CreditCardCreditExpenseLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CreditCardCreditExpenseLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CreditCardCreditExpenseLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CreditCardCreditExpenseLine<br /><br />IF OBJECT_ID (N'Tbl_CreditCardCreditItemLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CreditCardCreditItemLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CreditCardCreditItemLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CreditCardCreditItemLine<br /><br />IF OBJECT_ID (N'Tbl_CreditMemo', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CreditMemo<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CreditMemo&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CreditMemo<br /><br />IF OBJECT_ID (N'Tbl_CreditMemoLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CreditMemoLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CreditMemoLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CreditMemoLine<br /><br />IF OBJECT_ID (N'Tbl_CreditMemoLinkedTxn', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CreditMemoLinkedTxn<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CreditMemoLinkedTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CreditMemoLinkedTxn<br /><br />IF OBJECT_ID (N'Tbl_Currency', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_Currency<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Currency&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Currency<br /><br />IF OBJECT_ID (N'Tbl_Customer', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_Customer<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Customer&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Customer<br /><br />IF OBJECT_ID (N'Tbl_CustomerAddtionalNote', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CustomerAddtionalNote<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CustomerAddtionalNote&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CustomerAddtionalNote<br /><br />IF OBJECT_ID (N'Tbl_CustomerContacts', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CustomerContacts<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CustomerContacts&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CustomerContacts<br /><br />IF OBJECT_ID (N'Tbl_CustomerShipToAddress', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CustomerShipToAddress<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CustomerShipToAddress&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CustomerShipToAddress<br /><br />IF OBJECT_ID (N'Tbl_CustomerMsg', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CustomerMsg<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CustomerMsg&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CustomerMsg<br /><br />IF OBJECT_ID (N'Tbl_CustomerType', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CustomerType<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CustomerType&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CustomerType<br /><br />IF OBJECT_ID (N'Tbl_CustomField', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_CustomField<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_CustomField&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...CustomField<br /><br />IF OBJECT_ID (N'Tbl_DateDrivenTerms', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_DateDrivenTerms<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_DateDrivenTerms&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...DateDrivenTerms<br /><br />IF OBJECT_ID (N'Tbl_Deposit', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_Deposit<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Deposit&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Deposit<br /><br />IF OBJECT_ID (N'Tbl_DepositLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_DepositLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_DepositLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...DepositLine<br /><br />IF OBJECT_ID (N'Tbl_Employee', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_Employee<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Employee&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Employee<br /><br />IF OBJECT_ID (N'Tbl_EmployeeAddtionalNote', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_EmployeeAddtionalNote<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_EmployeeAddtionalNote&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...EmployeeAddtionalNote<br /><br />IF OBJECT_ID (N'Tbl_EmployeeEarning', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_EmployeeEarning<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_EmployeeEarning&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...EmployeeEarning<br /><br />IF OBJECT_ID (N'Tbl_Entity', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_Entity<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Entity&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Entity<br /><br />IF OBJECT_ID (N'Tbl_EntityAdditionalNote', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_EntityAdditionalNote<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_EntityAdditionalNote&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...EntityAdditionalNote<br /><br />IF OBJECT_ID (N'Tbl_EntityContacts', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_EntityContacts<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_EntityContacts&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...EntityContacts<br /><br />IF OBJECT_ID (N'Tbl_EntityShipToAddress', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_EntityShipToAddress<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_EntityShipToAddress&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...EntityShipToAddress<br /><br />IF OBJECT_ID (N'Tbl_Estimate', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_Estimate<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Estimate&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Estimate<br /><br />IF OBJECT_ID (N'Tbl_EstimateLine', N'U') IS NOT NULL <br />&nbsp; <br />Drop table Tbl_EstimateLine<br /><br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_EstimateLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...EstimateLine<br /><br />IF OBJECT_ID (N'Tbl_EstimateLinkedTxn', N'U') IS NOT NULL<br />Drop table Tbl_EstimateLinkedTxn<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_EstimateLinkedTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...EstimateLinkedTxn<br /><br />IF OBJECT_ID (N'Tbl_Host', N'U') IS NOT NULL<br />Drop table Tbl_Host<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Host&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Host<br /><br />IF OBJECT_ID (N'Tbl_HostMetaData', N'U') IS NOT NULL<br />Drop table Tbl_HostMetaData<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_HostMetaData&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...HostMetaData<br /><br />IF OBJECT_ID (N'Tbl_HostSupportedVersions', N'U') IS NOT NULL<br />Drop table Tbl_HostSupportedVersions<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_HostSupportedVersions&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...HostSupportedVersions<br /><br />IF OBJECT_ID (N'Tbl_InventoryAdjustment', N'U') IS NOT NULL<br />Drop table Tbl_InventoryAdjustment<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_InventoryAdjustment&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...InventoryAdjustment<br /><br />IF OBJECT_ID (N'Tbl_InventoryAdjustmentLine', N'U') IS NOT NULL<br />Drop table Tbl_InventoryAdjustmentLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_InventoryAdjustmentLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...InventoryAdjustmentLine<br /><br />IF OBJECT_ID (N'Tbl_InventorySite', N'U') IS NOT NULL<br />Drop table Tbl_InventorySite<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_InventorySite&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...InventorySite<br /><br />IF OBJECT_ID (N'Tbl_Invoice', N'U') IS NOT NULL<br />Drop table Tbl_Invoice<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Invoice&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Invoice<br /><br />IF OBJECT_ID (N'Tbl_InvoiceLine', N'U') IS NOT NULL<br />Drop table Tbl_InvoiceLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_InvoiceLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...InvoiceLine<br /><br />IF OBJECT_ID (N'Tbl_InvoiceLinkedTxn', N'U') IS NOT NULL<br />Drop table Tbl_InvoiceLinkedTxn<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_InvoiceLinkedTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...InvoiceLinkedTxn<br /><br />IF OBJECT_ID (N'Tbl_Item', N'U') IS NOT NULL<br />Drop table Tbl_Item<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Item&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Item<br /><br />IF OBJECT_ID (N'Tbl_ItemAssembliesCanBuild', N'U') IS NOT NULL<br />Drop table Tbl_ItemAssembliesCanBuild<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemAssembliesCanBuild&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemAssembliesCanBuild where ItemInventoryAssemblyRefFullName='assembly item' and TxnDate={d'2018-01-01'}<br /><br />IF OBJECT_ID (N'Tbl_ItemDiscount', N'U') IS NOT NULL<br />Drop table Tbl_ItemDiscount<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemDiscount&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemDiscount<br /><br />IF OBJECT_ID (N'Tbl_ItemFixedAsset', N'U') IS NOT NULL<br />Drop table Tbl_ItemFixedAsset<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemFixedAsset&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemFixedAsset<br /><br />IF OBJECT_ID (N'Tbl_ItemGroup', N'U') IS NOT NULL<br />Drop table Tbl_ItemGroup<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemGroup&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemGroup<br /><br />IF OBJECT_ID (N'Tbl_ItemGroupLine', N'U') IS NOT NULL<br />Drop table Tbl_ItemGroupLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemGroupLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemGroupLine<br /><br />IF OBJECT_ID (N'Tbl_ItemInventory', N'U') IS NOT NULL<br />Drop table Tbl_ItemInventory<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemInventory&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemInventory<br /><br />IF OBJECT_ID (N'Tbl_ItemInventoryAssembly', N'U') IS NOT NULL<br />Drop table Tbl_ItemInventoryAssembly<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemInventoryAssembly&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemInventoryAssembly<br /><br />IF OBJECT_ID (N'Tbl_ItemInventoryAssemblyLine', N'U') IS NOT NULL<br />Drop table Tbl_ItemInventoryAssemblyLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemInventoryAssemblyLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemInventoryAssemblyLine<br /><br />IF OBJECT_ID (N'Tbl_ItemNonInventory', N'U') IS NOT NULL<br />Drop table Tbl_ItemNonInventory<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemNonInventory&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemNonInventory<br /><br />IF OBJECT_ID (N'Tbl_ItemOtherCharge', N'U') IS NOT NULL<br />Drop table Tbl_ItemOtherCharge<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemOtherCharge&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemOtherCharge<br /><br />IF OBJECT_ID (N'Tbl_ItemPayment', N'U') IS NOT NULL<br />Drop table Tbl_ItemPayment<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemPayment&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemPayment<br /><br />IF OBJECT_ID (N'Tbl_ItemReceipt', N'U') IS NOT NULL<br />Drop table Tbl_ItemReceipt<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemReceipt&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemReceipt<br /><br />IF OBJECT_ID (N'Tbl_ItemReceiptExpenseLine', N'U') IS NOT NULL<br />Drop table Tbl_ItemReceiptExpenseLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemReceiptExpenseLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemReceiptExpenseLine<br /><br />IF OBJECT_ID (N'Tbl_ItemReceiptItemLine', N'U') IS NOT NULL<br />Drop table Tbl_ItemReceiptItemLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemReceiptItemLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemReceiptItemLine<br /><br />IF OBJECT_ID (N'Tbl_ItemReceiptLinkedTxn', N'U') IS NOT NULL<br />Drop table Tbl_ItemReceiptLinkedTxn<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemReceiptLinkedTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemReceiptLinkedTxn<br /><br />IF OBJECT_ID (N'Tbl_ItemSalesTax', N'U') IS NOT NULL<br />Drop table Tbl_ItemSalesTax<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemSalesTax&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemSalesTax<br /><br />IF OBJECT_ID (N'Tbl_ItemSalesTaxGroup', N'U') IS NOT NULL<br />Drop table Tbl_ItemSalesTaxGroup<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemSalesTaxGroup&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemSalesTaxGroup<br /><br />IF OBJECT_ID (N'Tbl_ItemSalesTaxGroupLine', N'U') IS NOT NULL<br />Drop table Tbl_ItemSalesTaxGroupLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemSalesTaxGroupLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemSalesTaxGroupLine<br /><br />IF OBJECT_ID (N'Tbl_ItemSites', N'U') IS NOT NULL<br />Drop table Tbl_ItemSites<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemSites&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemSites<br /><br />IF OBJECT_ID (N'Tbl_ItemService', N'U') IS NOT NULL<br />Drop table Tbl_ItemService<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemService&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemService<br /><br />IF OBJECT_ID (N'Tbl_ItemSubtotal', N'U') IS NOT NULL<br />Drop table Tbl_ItemSubtotal<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ItemSubtotal&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ItemSubtotal<br /><br />IF OBJECT_ID (N'Tbl_JobType', N'U') IS NOT NULL<br />Drop table Tbl_JobType<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_JobType&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...job type<br /><br />IF OBJECT_ID (N'Tbl_JournalEntry', N'U') IS NOT NULL<br />Drop table Tbl_JournalEntry<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_JournalEntry&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...JournalEntry<br /><br />IF OBJECT_ID (N'Tbl_JournalEntryCreditLine', N'U') IS NOT NULL<br />Drop table Tbl_JournalEntryCreditLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_JournalEntryCreditLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...JournalEntryCreditLine<br /><br />IF OBJECT_ID (N'Tbl_JournalEntryDebitLine', N'U') IS NOT NULL<br />Drop table Tbl_JournalEntryDebitLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_JournalEntryDebitLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...JournalEntryDebitLine<br /><br />IF OBJECT_ID (N'Tbl_JournalEntryLine', N'U') IS NOT NULL<br />Drop table Tbl_JournalEntryLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_JournalEntryLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...JournalEntryLine<br /><br />IF OBJECT_ID (N'Tbl_ListDeleted', N'U') IS NOT NULL<br />Drop table Tbl_ListDeleted<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ListDeleted&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ListDeleted<br /><br />IF OBJECT_ID (N'Tbl_OtherName', N'U') IS NOT NULL<br />Drop table Tbl_OtherName<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_OtherName&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote... another name<br /><br />IF OBJECT_ID (N'Tbl_PaymentMethod', N'U') IS NOT NULL<br />Drop table Tbl_PaymentMethod<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_PaymentMethod&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...payment method<br /><br />IF OBJECT_ID (N'Tbl_PayrollItemNonWage', N'U') IS NOT NULL<br />Drop table Tbl_PayrollItemNonWage<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_PayrollItemNonWage&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...PayrollItemNonWage<br /><br />IF OBJECT_ID (N'Tbl_PayrollItemWage', N'U') IS NOT NULL<br />Drop table Tbl_PayrollItemWage<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_PayrollItemWage&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...PayrollItemWage<br /><br />IF OBJECT_ID (N'Tbl_Preferences', N'U') IS NOT NULL<br />Drop table Tbl_Preferences<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Preferences&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Preferences<br /><br />IF OBJECT_ID (N'Tbl_PriceLevel', N'U') IS NOT NULL<br />Drop table Tbl_PriceLevel<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_PriceLevel&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...PriceLevel<br /><br />IF OBJECT_ID (N'Tbl_PriceLevelPerItem', N'U') IS NOT NULL<br />Drop table Tbl_PriceLevelPerItem<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_PriceLevelPerItem&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...PriceLevelPerItem<br /><br />IF OBJECT_ID (N'Tbl_PurchaseOrder', N'U') IS NOT NULL<br />Drop table Tbl_PurchaseOrder<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_PurchaseOrder&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...PurchaseOrder<br /><br />IF OBJECT_ID (N'Tbl_PurchaseOrderLine', N'U') IS NOT NULL<br />Drop table Tbl_PurchaseOrderLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_PurchaseOrderLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...PurchaseOrderLine<br /><br />IF OBJECT_ID (N'Tbl_PurchaseOrderLinkedTxn', N'U') IS NOT NULL<br />Drop table Tbl_PurchaseOrderLinkedTxn<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_PurchaseOrderLinkedTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...PurchaseOrderLinkedTxn<br /><br />IF OBJECT_ID (N'Tbl_ReceivePayment', N'U') IS NOT NULL<br />Drop table Tbl_ReceivePayment<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ReceivePayment&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...receive payment<br /><br />IF OBJECT_ID (N'Tbl_ReceivePaymentLine', N'U') IS NOT NULL<br />Drop table Tbl_ReceivePaymentLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ReceivePaymentLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ReceivePaymentLine<br /><br />IF OBJECT_ID (N'Tbl_ReceivePaymentLineLinkedTxn', N'U') IS NOT NULL<br />Drop table Tbl_ReceivePaymentLineLinkedTxn<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ReceivePaymentLineLinkedTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ReceivePaymentLineLinkedTxn<br /><br />IF OBJECT_ID (N'Tbl_ReceivePaymentToDeposit', N'U') IS NOT NULL<br />Drop table Tbl_ReceivePaymentToDeposit<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ReceivePaymentToDeposit&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ReceivePaymentToDeposit<br /><br />IF OBJECT_ID (N'Tbl_Sales', N'U') IS NOT NULL<br />Drop table Tbl_Sales<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Sales&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Sales<br /><br />IF OBJECT_ID (N'Tbl_SalesLine', N'U') IS NOT NULL<br />Drop table Tbl_SalesLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_SalesLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...SalesLine<br /><br />IF OBJECT_ID (N'Tbl_SalesOrder', N'U') IS NOT NULL<br />Drop table Tbl_SalesOrder<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_SalesOrder&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...SalesOrder<br /><br />IF OBJECT_ID (N'Tbl_SalesOrderLine', N'U') IS NOT NULL<br />Drop table Tbl_SalesOrderLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_SalesOrderLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...SalesOrderLine<br /><br />IF OBJECT_ID (N'Tbl_SalesOrderLinkedTxn', N'U') IS NOT NULL<br />Drop table Tbl_SalesOrderLinkedTxn<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_SalesOrderLinkedTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...SalesOrderLinkedTxn<br /><br />IF OBJECT_ID (N'Tbl_SalesReceipt', N'U') IS NOT NULL<br />Drop table Tbl_SalesReceipt<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_SalesReceipt&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...SalesReceipt<br /><br />IF OBJECT_ID (N'Tbl_SalesReceiptLine', N'U') IS NOT NULL<br />Drop table Tbl_SalesReceiptLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_SalesReceiptLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...SalesReceiptLine<br /><br />IF OBJECT_ID (N'Tbl_SalesRep', N'U') IS NOT NULL<br />Drop table Tbl_SalesRep<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_SalesRep&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...SalesRep<br /><br />IF OBJECT_ID (N'Tbl_SalesTaxCode', N'U') IS NOT NULL<br />Drop table Tbl_SalesTaxCode<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_SalesTaxCode&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...SalesTaxCode<br /><br />IF OBJECT_ID (N'Tbl_SalesTaxPaymentCheck', N'U') IS NOT NULL<br />Drop table Tbl_SalesTaxPaymentCheck<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_SalesTaxPaymentCheck&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...SalesTaxPaymentCheck<br /><br />IF OBJECT_ID (N'Tbl_SalesTaxPaymentCheckLine', N'U') IS NOT NULL<br />Drop table Tbl_SalesTaxPaymentCheckLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_SalesTaxPaymentCheckLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...SalesTaxPaymentCheckLine<br /><br />IF OBJECT_ID (N'Tbl_ShipMethod', N'U') IS NOT NULL<br />Drop table Tbl_ShipMethod<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ShipMethod&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ShipMethod<br /><br />IF OBJECT_ID (N'Tbl_SpecialAccount', N'U') IS NOT NULL<br />Drop table Tbl_SpecialAccount<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_SpecialAccount&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...SpecialAccount<br /><br />IF OBJECT_ID (N'Tbl_SpecialItem', N'U') IS NOT NULL<br />Drop table Tbl_SpecialItem<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_SpecialItem&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...SpecialItem<br /><br />IF OBJECT_ID (N'Tbl_StandardTerms', N'U') IS NOT NULL<br />Drop table Tbl_StandardTerms<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_StandardTerms&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...StandardTerms<br /><br />IF OBJECT_ID (N'Tbl_TaxCode', N'U') IS NOT NULL<br />Drop table Tbl_TaxCode<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_TaxCode&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...TaxCode<br /><br />IF OBJECT_ID (N'Tbl_Template', N'U') IS NOT NULL<br />Drop table Tbl_Template<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Template&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Template<br /><br />IF OBJECT_ID (N'Tbl_Terms', N'U') IS NOT NULL<br />Drop table Tbl_Terms<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Terms&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Terms<br /><br />IF OBJECT_ID (N'Tbl_TimeTracking', N'U') IS NOT NULL<br />Drop table Tbl_TimeTracking<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_TimeTracking&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...TimeTracking<br /><br />IF OBJECT_ID (N'Tbl_ToDo', N'U') IS NOT NULL<br />Drop table Tbl_ToDo<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_ToDo&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...ToDo<br /><br />IF OBJECT_ID (N'Tbl_Transaction', N'U') IS NOT NULL<br />Drop table Tbl_Transaction<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Transaction&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote..."Transaction"<br /><br />IF OBJECT_ID (N'Tbl_Transfer', N'U') IS NOT NULL<br />Drop table Tbl_Transfer<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Transfer&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Transfer<br /><br />IF OBJECT_ID (N'Tbl_TransferInventory', N'U') IS NOT NULL<br />Drop table Tbl_TransferInventory<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_TransferInventory&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...TransferInventory<br /><br />IF OBJECT_ID (N'Tbl_TransferInventoryLine', N'U') IS NOT NULL<br />Drop table Tbl_TransferInventoryLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_TransferInventoryLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...TransferInventoryLine<br /><br />IF OBJECT_ID (N'Tbl_TxnDeleted', N'U') IS NOT NULL<br />Drop table Tbl_TxnDeleted<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_TxnDeleted&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...TxnDeleted<br /><br />IF OBJECT_ID (N'Tbl_UnitOfMeasureSet', N'U') IS NOT NULL<br />Drop table Tbl_UnitOfMeasureSet<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_UnitOfMeasureSet&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...UnitOfMeasureSet<br /><br />IF OBJECT_ID (N'Tbl_UnitOfMeasureSetRelatedUnit', N'U') IS NOT NULL<br />Drop table Tbl_UnitOfMeasureSetRelatedUnit<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_UnitOfMeasureSetRelatedUnit&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...UnitOfMeasureSetRelatedUnit<br /><br />IF OBJECT_ID (N'Tbl_UnitOfMeasureSetDefaultUnit', N'U') IS NOT NULL<br />Drop table Tbl_UnitOfMeasureSetDefaultUnit<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_UnitOfMeasureSetDefaultUnit&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...UnitOfMeasureSetDefaultUnit<br /><br />IF OBJECT_ID (N'Tbl_Vehicle', N'U') IS NOT NULL<br />Drop table Tbl_Vehicle<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Vehicle&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Vehicle<br /><br />IF OBJECT_ID (N'Tbl_VehicleMileage', N'U') IS NOT NULL<br />Drop table Tbl_VehicleMileage<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_VehicleMileage&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...VehicleMileage<br /><br />IF OBJECT_ID (N'Tbl_Vendor', N'U') IS NOT NULL<br />Drop table Tbl_Vendor<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_Vendor&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...Vendor<br /><br />IF OBJECT_ID (N'Tbl_VendorContacts', N'U') IS NOT NULL<br />Drop table Tbl_VendorContacts<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_VendorContacts&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...VendorContacts<br /><br />IF OBJECT_ID (N'Tbl_VendorCredit', N'U') IS NOT NULL<br />Drop table Tbl_VendorCredit<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_VendorCredit&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...VendorCredit<br /><br />IF OBJECT_ID (N'Tbl_VendorCreditExpenseLine', N'U') IS NOT NULL<br />Drop table Tbl_VendorCreditExpenseLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_VendorCreditExpenseLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...VendorCreditExpenseLine<br /><br />IF OBJECT_ID (N'Tbl_VendorCreditItemLine', N'U') IS NOT NULL<br />Drop table Tbl_VendorCreditItemLine<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_VendorCreditItemLine&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...VendorCreditItemLine<br /><br />IF OBJECT_ID (N'Tbl_VendorCreditLinkedTxn', N'U') IS NOT NULL<br />Drop table Tbl_VendorCreditLinkedTxn<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_VendorCreditLinkedTxn&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...VendorCreditLinkedTxn<br /><br />IF OBJECT_ID (N'Tbl_VendorType', N'U') IS NOT NULL<br />Drop table Tbl_VendorType<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_VendorType&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...VendorType<br /><br />IF OBJECT_ID (N'Tbl_WorkersCompCode', N'U') IS NOT NULL<br />Drop table Tbl_WorkersCompCode<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_WorkersCompCode&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...WorkersCompCode<br /><br />IF OBJECT_ID (N'Tbl_WorkersCompCodeRateHistory', N'U') IS NOT NULL<br />Drop table Tbl_WorkersCompCodeRateHistory<br />SELECT * INTO&nbsp;&nbsp; &nbsp;Tbl_WorkersCompCodeRateHistory&nbsp;&nbsp; &nbsp;FROM&nbsp;&nbsp; &nbsp;QRemote...WorkersCompCodeRateHistory<br /><br />end</p>
<p>&nbsp;</p>
<p>================================================================<br /><br /></p>
<p>All tables are imported to the SQL Server Database by executing this stored procedure.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step17.png" alt="" /></p>
<p>You can see that all tables are imported into the SQL Server Database.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step18.png" alt="" /></p>
<p>You can add this stored procedure to SQL Agent &amp; schedule it. So it will automatically add all tables to the SQL Server Database.</p>
<p>Now we will add this stored procedure to SQL Agent.</p>
<p>Right-click on SQL Server Agent &amp; click on New &gt;&gt; Job to create a new Job.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step5.png" alt="" /></p>
<p>A New Job pop-up will appear. Specify the name of the job.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step6.png" alt="" /></p>
<p>Click next on the "Steps" in the left menu. An SQL job can contain one or more steps. A step might be simply an SQL statement or a stored procedure call. Add your effort here.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step7.png" alt="" /></p>
<p>Enter the step name and type. Select&nbsp;the database, write the stored procedure execution command "exec Import_QODBC_Tables," &amp; click ok.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step8.png" alt="" /></p>
<p>Job step added.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step9.png" alt="" /></p>
<p>The job is added to SQL Server Agent.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step10.png" alt="" /></p>
<p>You can run a Job by right-clicking on the Job name &amp; click on "Start Job at Step..."</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step11.png" alt="" /></p>
<p>The job is executing.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLImportALL/step12.png" alt="" /></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] Excel Automation - How to open, refresh and close a company file]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2813]]></link>
<guid isPermaLink="false"><![CDATA[39d352b0395ba768e18f042c6e2a8621]]></guid>
<pubDate><![CDATA[Tue, 09 Aug 2016 14:40:40 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Excel Automation - How to open, refresh, and close a company file
Download Sample
Before using the MS Excel application, please ensure you have installed the MS Office Component named "Microsoft Query." About MS Query, please refer to Microsoft Office w...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Excel Automation - How to open, refresh, and close a company file</span></h2>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><a href="http://support.flexquarters.com/esupport/newimages/ExcelAutomation/Excel Automation.zip">Download Sample</a></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Before using the MS Excel application, please ensure you have installed the MS Office Component named "Microsoft Query." About MS 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> for more. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">It would be best if you opened QuickBooks &amp; load the company file in QuickBooks.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step17.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Open MS Excel &amp; create a new spreadsheet.<br />First, please select the "Data" tab, navigate to "From Other Sources"-&gt;" From Microsoft Query."<br /><br />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 <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><br /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step1.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">And then, in the "Choose Data Source" Window, please select a DSN to continue. (Here, I choose the default data source with a sample company file open. And check to use the Query Wizard to create/edit queries.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step2.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">&nbsp;</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">'QuickBooks Data' as an example: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step3.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">The first time you used MS Excel to access QuickBooks. You will be asked to grant access permission for QODBC. After you grant permission for QODBC, you will be guided by the Query Wizard. Choose any table and click "Next" until you reach the Query Wizard.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step4.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Select View data or edit query in Microsoft Query &amp; click Finish:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step5.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Write a query &amp; click OK. In this example, I am writing a Trial Balance report query. <br />sp_report TrialBalance show Debit_Title, Credit_Title, Label, Debit, Credit parameters DateMacro = 'LastMonth', ReportBasis = 'Cash'</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step6.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You will get the following message box about the SQL Query. Click OK.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step7.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Report data is available in Microsoft Query:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step8.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Click on File &amp; Return Data to Microsoft Excel to save the export report in an Excel spreadsheet.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step9.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">When you finish the query, choose to save it so that the next time you can directly use it. Leaving MS Query, MS Excel will ask you to import the query result into MS Excel:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step10.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Report Data is exported to an Excel spreadsheet. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step11.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now we will disable auto-refresh of data from Data--&gt;Connection--&gt;Properties--&gt;Uncheck Enable Background Refresh &amp; Click OK:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step12.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now we will add a button &amp; we will write code for the button click event. On button click, it will open the connection, refresh the report data &amp; close the connection.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You can add a button from the Developer tab in MS Excel. If the Developer tab is not available, display it.<br /><br />Display the Developer tab.<br />Click the File tab, click Options, and then click the Customize Ribbon category.<br />Select the Developer check box in the Main Tabs list, and click OK.<br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> On the Developer tab, in the Controls group, click Insert, and then under ActiveX Controls, click Command Button. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step13.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Command Button is added. I have renamed it to Refresh Data. Double-click on the command button to write code.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step14.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Write the code below to open the connection, refresh the report data &amp; close the connection.<br /><br />Private Sub CommandButton1_Click()<br />ActiveWorkbook.Connections("Query from QuickBooks Data"). Refresh<br />End Sub<br /><br />Note: Query from QuickBooks Data is the name of the connection. You can get it from the Data--&gt; Connections.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step15.png" alt="" /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Report Data will be refreshed by clicking the Refresh Data button.<br /><br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ExcelAutomation/step16.png" alt="" /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to insert Invoice using Excel - VBA]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2810]]></link>
<guid isPermaLink="false"><![CDATA[663772ea088360f95bac3dc7ffb841be]]></guid>
<pubDate><![CDATA[Mon, 01 Aug 2016 15:28:48 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[How to insert an invoice using Excel - VBA
Download Sample
In this example, we will show you how to insert an Invoice in QuickBooks using the data available in an Excel spreadsheet.
We have an Excel spreadsheet that contains invoice-related information...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">How to insert an invoice using Excel - VBA</span></h2>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><a href="http://support.flexquarters.com/esupport/newimages/InsertInvoiceVBA/Insert_Invoice.zip">Download Sample</a></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">In this example, we will show you how to insert an Invoice in QuickBooks using the data available in an Excel spreadsheet.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">We have an Excel spreadsheet that contains invoice-related information. The Excel spreadsheet has a CustomerRefFullName, RefNumber, TxnDate, InvoiceLineItemRefFullName, InvoiceLineDesc, InvoiceLineRate, InvoiceLineQuantity, InvoiceLineSalesTaxCodeRefFullName, and FQSaveToCache information. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Using this information, we will create an Invoice in QuickBooks, which has 4 line items. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InsertInvoiceVBA/step1.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now we will add a button &amp; we will write code for the button click event. On button click, it inserts the Invoice in QuickBooks.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You can add a button from the Developer tab in MS Excel. If the Developer tab is not available, display it.<br /><br />Display the Developer tab.<br />Click the File tab, click Options, and then click the Customize Ribbon category.<br />Select the Developer check box in the Main Tabs list, and click OK.<br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> On the Developer tab, in the Controls group, click Insert, and then under ActiveX Controls, click Command Button. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InsertInvoiceVBA/step2.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Command Button is added. I have renamed it to ADD Invoice&mdash;double-click on the command button to write code.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InsertInvoiceVBA/step3.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Write the code below for inserting an invoice in QuickBooks from an Excel spreadsheet.<br /><br /> <br /><br />Private Sub CommandButton1_Click() <br /><br />Dim sh As Worksheet<br />Dim row As Range<br />Dim RowCount As Integer<br />Dim CustomerRefFullName As String<br />Dim RefNumber As String<br />Dim TxnDate As Date<br />Dim InvoiceLineItemRefFullName As String<br />Dim InvoiceLineDesc As String<br />Dim InvoiceLineRate As Single<br />Dim InvoiceLineQuantity As Single<br />Dim InvoiceLineSalesTaxCodeRefFullName As String<br />Dim FQSaveToCache As Boolean<br />Dim connection As New ADODB.Connection<br />Dim sConnectString<br />Dim sSQL As String<br />Dim rs<br />Dim sMsg<br /> <br />RowCount = 0<br />sConnectString = "DSN=QuickBooks Data;OLE DB Services=-2;"<br /><br />'' For 64-bit use this one--&gt;sConnectString = "DSN=QuickBooks Data 64-bit QRemote;" <br />sSQL = "SELECT * FROM InvoiceLine"<br />Set rs = New ADODB.Recordset<br />oConnection.Open (sConnectString)<br />rs.Open sSQL, oConnection, adOpenDynamic, adLockOptimistic<br />Set sh = ActiveSheet<br />For Each rw In sh.Rows<br /><br />If (RowCount &gt; 0), Then<br />CustomerRefFullName = sh.Cells(rw.Row, 1).Value<br />If (CustomerRefFullName = "") Then<br />Exit For<br /> <br />End If<br /><br />RefNumber = sh.Cells(rw.Row, 2).Value<br />TxnDate = sh.Cells(rw.Row, 3).Value<br />InvoiceLineItemRefFullName = sh.Cells(rw.Row, 4).Value<br />InvoiceLineDesc = sh.Cells(rw.Row, 5).Value<br />InvoiceLineRate = sh.Cells(rw.Row, 6).Value<br />InvoiceLineQuantity = sh.Cells(rw.Row, 7).Value<br />InvoiceLineSalesTaxCodeRefFullName = sh.Cells(rw.Row, 8).Value<br />FQSaveToCache = sh.Cells(rw.Row, 9).Value<br /> <br />rs.AddNew<br />rs("CustomerRefFullName") = CustomerRefFullName<br />rs("RefNumber") = RefNumber<br />rs("TxnDate") = TxnDate<br />rs("InvoiceLineItemRefFullName") = InvoiceLineItemRefFullName<br />rs("InvoiceLineDesc") = InvoiceLineDesc<br />rs("InvoiceLineRate") = InvoiceLineRate<br />rs("InvoiceLineQuantity") = InvoiceLineQuantity<br />rs("InvoiceLineSalesTaxCodeRefFullName") = InvoiceLineSalesTaxCodeRefFullName<br />rs("FQSaveToCache") = FQSaveToCache<br />rs.Update<br /> <br />End If<br /><br />RowCount = RowCount + 1<br />Next rw<br />sMsg = sMsg &amp; "Invoice Added!!!"<br />MsgBox sMsg<br /><br />rs. Close<br />oConnection.Close<br /> <br />End Sub <br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InsertInvoiceVBA/step4.png" alt="" /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InsertInvoiceVBA/step5.png" alt="" /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InsertInvoiceVBA/step6.png" alt="" /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">On clicking on the ADD Invoice button, the Invoice will be added to QuickBooks.<br /><br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InsertInvoiceVBA/step3.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Invoice Added.<br /><br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InsertInvoiceVBA/step7.png" alt="" /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You can see the same in the QuickBooks Invoice that is added.<br /><br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InsertInvoiceVBA/step8.png" alt="" /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Connecting multiple QuickBooks companies via Excel]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2809]]></link>
<guid isPermaLink="false"><![CDATA[b4fd1d2cb085390fbbadae65e07876a7]]></guid>
<pubDate><![CDATA[Thu, 28 Jul 2016 17:25:58 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Connecting multiple QuickBooks companies via Excel
Download Sample
There is a limitation with the QuickBooks&nbsp;Desktop SDK: it can connect only one company file to a user session at a time. It means you cannot access multiple company files at the sam...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Connecting multiple QuickBooks companies via Excel</span></h2>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><a href="http://support.flexquarters.com/esupport/newimages/MultipleCompany/MultipleQBCompanyConnection.zip">Download Sample</a></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">There is a limitation with the QuickBooks&nbsp;Desktop SDK: it can connect only one company file to a user session at a time.<br /> <br />It means you cannot access multiple company files at the same time. <br /> <br />You need to close the connection with one company file and switch to another. ( i.e., connection closed for company A and Connection open for company B should have a gap of 15-30 seconds for switching operation.)</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">This applies to QuickBooks Desktop. When using QuickBooks Online, you can connect to multiple company files simultaneously.</span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">In this article, we will connect to two different QuickBooks Desktop company files using two different QODBC DSNs with auto login configured. In this example, we will use two auto logins, DSN CompanyA &amp; CompanyB. <br /><br />Please Refer:<br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2360" target="_blank">How to set up QODBC Desktop for Auto-login into QuickBooks Desktop</a><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2511" target="_blank">How to set up the QODBC Driver to auto-connect to QuickBooks Desktop. (Video)</a><br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Here is my DSN configuration for the First QuickBooks Desktop Company file.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step26.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step28.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">It would be best if you opened QuickBooks&nbsp;Desktop &amp; loaded the company file that you have chosen in the auto login DSN. The company file path in QuickBooks &amp; DSN should be matched.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step25.png" alt="" /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Open MS Excel &amp; create a new spreadsheet.<br />First, please select the "Data" tab, navigate to "From Other Sources"-&gt;" From Microsoft Query."</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.</p>
<p>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>.&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step1.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">And then, in the "Choose Data Source" Window, please select a DSN to continue. (Here, I choose the default data source with a sample company file open. And check to use the Query Wizard to create/edit queries.) </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">&nbsp;</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">'CompanyA' as an example: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step3.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">The first time you use MS Excel to access QuickBooks Desktop, you will be asked to grant access permission for QODBC. After you grant permission for QODBC, you will be guided by the Query Wizard. Choose any table and click "Next" until you reach the Query Wizard.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step4.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Select View data or edit query in Microsoft Query &amp; click Finish:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step5.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Write a query &amp; click OK. In this example, I am writing a Trial Balance report query. <br />sp_report TrialBalance show Debit_Title, Credit_Title, Label, Debit, Credit parameters DateMacro = 'LastMonth', ReportBasis = 'Cash'</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step6.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You will get the following message box about the SQL Query. Click OK.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step7.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Report data is available in Microsoft Query:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step8.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Click on File &amp; Return Data to Microsoft Excel to save the export report in an Excel spreadsheet.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step9.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">When you finish the query, choose to save it so that the next time you can directly use it. Leaving MS Query, MS Excel will ask you to import the query result into MS Excel:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step10.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Report Data is exported to an Excel sheet. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step11.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Repeating the above steps will export another report in sheet 2 using DSN CompanyB. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">We need to close the first company file, which is open in QuickBooks Desktop. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step24.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Here is my DSN configuration for the Second Company file.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step27.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step28.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">It would be best if you opened QuickBooks Desktop&nbsp;and loaded the company file that you have chosen in the auto login DSN. The company file path in QuickBooks &amp; DSN should be matched.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step23.png" alt="" /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Navigate to sheet2<br />First, please select the "Data" tab, navigate to "From Other Sources"-&gt;" From Microsoft Query."</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step1.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">And then, in the "Choose Data Source" Window, please select a DSN to continue. (Here, I choose the default data source with a sample company file open. And check to use the Query Wizard to create/edit queries.) </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">&nbsp;</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">'CompanyB' as an example: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step17.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">The first time you use MS Excel to access QuickBooks Desktop, you will be asked to grant access permission for QODBC. After you grant permission for QODBC, you will be guided by the Query Wizard. Choose any table and click "Next" until you reach the Query Wizard.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step4.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Select View data or edit query in Microsoft Query &amp; click Finish:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step5.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Write a query &amp; click OK. In this example, I am writing a Profit &amp; Loss report query. <br />sp_report ProfitAndLossStandard show Amount_Title, Text, Label, Amount parameters DateMacro = 'ThisMonthToDate', SummarizeColumnsBy = 'TotalOnly'</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step18.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You will get the following message box about the SQL Query. Click OK.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step7.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Report data is available in Microsoft Query:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step19.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Click on File &amp; Return Data to Microsoft Excel to save the export report in an Excel spreadsheet.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step20.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">When you finish the query, choose to save it so that the next time you can directly use it. Leaving MS Query, MS Excel will ask you to import the query result into MS Excel:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step10.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Report Data is exported to an Excel sheet 2. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step21.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">After the export is complete, close the company file opened in QuickBooks Desktop. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step24.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now we will disable auto-refresh of data from Data--&gt;Connection--&gt;Properties--&gt;Uncheck Enable Background Refresh &amp; Click OK:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step12.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">We need to disable auto-refresh data for both company file connections (i.e., Query from CompanyA &amp; Query from CompanyB ).</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now we will add a button &amp; we will write code for the button click event. On button click, it will open the connection for CompanyA, refresh the report data &amp; close the connection for CompanyA, sleep for 15 seconds, open the connection for CompanyB, refresh the report data &amp; close the connection for CompanyB.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You can add a button from the Developer tab in MS Excel. If the Developer tab is not available, display it.<br /><br />Display the Developer tab.<br />Click the File tab, click Options, and then click the Customize Ribbon category.<br />Select the Developer check box in the Main Tabs list, and click OK.<br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> On the Developer tab, in the Controls group, click Insert, and then under ActiveX Controls, click Command Button. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step13.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Command Button is added. I have renamed it to Refresh Data. Double-click on the command button to write code.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step14.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Write the code below to open a connection for Company A, refresh the report data &amp; close the connection for Company A, sleep for 15 seconds, open the connection for CompanyB, restore the report data &amp; close the connection for CompanyB. <br /><br />Fifteen seconds of sleep are required to close the company file and switch to another private&nbsp;Sub CommandButton1_Click()<br />ActiveWorkbook.Connections("Query from CompanyA"). Refresh<br />Application.Wait (Now + TimeValue("0:00:15"))<br />ActiveWorkbook.Connections("Query from CompanyB").Refresh<br />End Sub <br /><br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step22.png" alt="" /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Report Data will be refreshed by clicking the Refresh Data button.<br /><br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleCompany/step16.png" alt="" /></span></p>
<p>&nbsp;</p>
<p>Keywords: QuickBooks Desktop, win log with multiple companies, log in with various companies</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Using ADODC and ADODB with QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2795]]></link>
<guid isPermaLink="false"><![CDATA[a7f592cef8b130a6967a90617db5681b]]></guid>
<pubDate><![CDATA[Wed, 06 Jul 2016 14:13:03 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Using ADODC and ADODB with QODBC
Download Sample
ADODB with QODBC
Open VB6, you can find it via Windows Start-&gt;All Programs-&gt;Microsoft Visual Studio 6.0 : 
Create a New Standard EXE project.

Then, add a "Command Button" by double-clicking on ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Using ADODC and ADODB with QODBC</span></h2>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><a href="http://support.flexquarters.com/esupport/newimages/VB6/QODBCVB6.zip">Download Sample</a></span></p>
<h3><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">ADODB with QODBC</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Open VB6, you can find it via Windows Start-&gt;All Programs-&gt;Microsoft Visual Studio 6.0 : </span></p>
<p>Create a New Standard EXE project.</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step1.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Then, add a "Command Button" by double-clicking on the command button Icon. A command button will be added. Rename it to Get Customer via ADODB:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step2.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">&nbsp;</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Double click on the Command Button &amp; add the code below in the Command Button click event: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step3.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> Private Sub Command1_Click()<br /><br />Dim oConnection As ADODB.Connection<br />Dim oRecordset As ADODB.Recordset<br />Dim sMsg As String<br />Dim sConnectString As String<br />Dim sSQL As String<br /><br />sConnectString = "DSN=QuickBooks Data;OLE DB Services=-2;"<br />sSQL = "SELECT top 10 Name FROM Customer"<br />Set oConnection = New ADODB.Connection<br />Set oRecordset = New ADODB.Recordset<br />oConnection.Open sConnectString<br />oRecordset.Open sSQL, oConnection, adOpenStatic, adLockOptimistic<br />sMsg = "**********************" &amp; Chr(10)<br />Do While (Not oRecordset.EOF)<br />sMsg = sMsg &amp; oRecordset.Fields("Name") &amp; Chr(10)<br />oRecordset.MoveNext<br />Loop<br />sMsg = sMsg &amp; "**********************" &amp; Chr(10)<br />MsgBox sMsg<br /><br />oRecordset.Close<br />Set oRecordset = Nothing<br />oConnection.Close<br />Set oConnection = Nothing<br /><br />End Sub</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now execute the code from Run &gt;&gt; Start With Full Compile </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step4.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Double click on Get Customer via ADODB, which will get the top 10 customers' names &amp; display them in msg box:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step5.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step6.png" alt="" /></span></p>
<h3><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">ADODC with QODBC</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now we will add an ADODC control in the same project we created in the above ADODB example.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step7.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now we will configure ADODC control by right-clicking on the ADODC control &amp; clicking on ADODC Properties:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step8.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">From the General tab, select ODBC Data Source, QuickBooks Data.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step9.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Navigate to the RecordSource tab, select Command type to 2 - adCmdTable &amp; table name Customer, and click OK.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step10.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now we will add three text boxes showing the Customer table data through the ADODC control.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step11.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now we will configure text boxes to display data from the ADODC control. Choose DataSource Adodc1 (i.e., ADODC Control name) &amp; DataField FullName (i.e., Field name which you want to show):</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step12.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Similarly, we will configure the other two textboxes with the Phone &amp; Email fields.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now execute the code from Run &gt;&gt; Start With Full Compile.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step13.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step14.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">The following customer data will be displayed by clicking on the "Next" button.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VB6/step15.png" alt="" /></span></p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to use QODBC with SSIS]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2782]]></link>
<guid isPermaLink="false"><![CDATA[60243f9b1ac2dba11ff8131c8f4431e0]]></guid>
<pubDate><![CDATA[Fri, 27 May 2016 14:22:01 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ How to use QODBC with SSIS 
Either QODBC or QRemote is required on the machine where the SSIS package will be developed and deployed, or SSIS services are installed.
Development - On the machine where you are developing, the SSIS package should have QO...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> How to use QODBC with SSIS </span></h2>
<p>Either QODBC or QRemote is required on the machine where the SSIS package will be developed and deployed, or SSIS services are installed.</p>
<p>Development - On the machine where you are developing, the SSIS package should have QODBC installed.</p>
<p>Deployment - On the machine you wish to deploy or run the SSIS Package - You should have QODBC installed.&nbsp;</p>
<p>The first step is to install and test QODBC.</p>
<p>Please refer to&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2512">Connecting QODBC Driver to QuickBooks for the First Time (Video)</a></p>
<p>If the QuickBooks application is installed on another machine, you can connect to QuickBooks from a remote device using QRemote Server. You need to install QODBC on both machines.</p>
<p>Please refer to&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2517/">Accessing QuickBooks Data Remotely using QODBC &amp; QRemote. (Video)</a></p>
<p>When deploying the SSIS package to SQL Server, you need to configure the QRemote client to connect with QuickBooks.</p>
<p>Please follow the steps below to use QODBC with SSIS.<br /><br />1. Go to the Start menu &amp; open SQL Server Business Intelligence Development Studio from SQL Server. <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step1.png" alt="" /></span></p>
<p><br /><br />2. Create a new Integration Service Project by clicking on Integration Service Project &amp; Enter Project Name, setting the project location, and clicking OK. <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step2.png" alt="" /></span></p>
<p><br /><br />The Project is created.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step3.png" alt="" /></span></p>
<p><br /><br />3. In this sample project, we will transfer QuickBooks data using the ADO.NET source to the Flat File Destination. Wes, we need to add a Data Flow Task in the Control Flow to the perform tab. You can add it by double-clicking on the Data Flow Task. <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step4.png" alt="" /></span></p>
<p><br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step5.png" alt="" /></span></p>
<p><br /><br />4. We need to add an ADO.NET Source in the Data Flow tab. You can add it by double-clicking on ADO.NET Source. <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step6.png" alt="" /></span></p>
<p><br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step7.png" alt="" /></span></p>
<p><br /><br />5. Now, we need to configure the ADO.NET source. By right-clicking on ADO.NET Source &amp; click on Edit.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step8.png" alt="" /></span></p>
<p><br /><br />Add a new ADO.NET connection by clicking on New.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step9.png" alt="" /></span></p>
<p><br /><br />Add a new Data connection by clicking on New.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step10.png" alt="" /></span></p>
<p><br /><br />Select Provider to .Net Providers\Odbc Data Provider, select DSN to QuickBooks Data QRemote, and click on Test Connection.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step11.png" alt="" /></span></p>
<p><br /><br />Test Connection Succeeded.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step12.png" alt="" /></span></p>
<p><br /><br />You can select Data Access Mode as Table or view the whole table data. You can also select Data Access Mode as an SQL command for accessing table data with a condition &amp; accessing report data using sp_report. In this example, I have selected Table or view as Data Access Mode &amp; selected the Customer table. Click on OK &amp; you will notice the connection has been added.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step13.png" alt="" /></span></p>
<p><br /><br />You can preview output data by clicking the Preview button.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step14.png" alt="" /></span></p>
<p><br /><br />Close the Preview by clicking the close button &amp; click on OK to save configurations.<br /><br />6. We need to add a Flat File Destination in the Data Flow tab. You can add it by double-clicking on Flat File Destination. <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step15.png" alt="" /></span></p>
<p><br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step16.png" alt="" /></span></p>
<p><br /><br />7. Now, we need to link the ADO.NET Source with the Flat File Destination by dragging the link from the ADO.NET Source to the Flat File Destination. <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step17.png" alt="" /></span></p>
<p><br /><br />8. Now, we need to configure the Flat File Destination. By right-clicking on Flat File Destination &amp; click on Edit. <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step18.png" alt="" /></span></p>
<p><br /><br />Add a new Flat File connection by clicking on New.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step19.png" alt="" /></span></p>
<p><br /><br />Select Flat File Format &amp; click OK.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step20.png" alt="" /></span></p>
<p><br /><br />Select the Destination file you want to store output using the Browse button.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step21.png" alt="" /></span></p>
<p><br /><br />Enable Unicode &amp; Column names in the first data row option, &amp; Click on OK to save configurations.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step22.png" alt="" /></span></p>
<p><br /><br />You will notice the OK button is disabled. To enable it, you need to click on Mapping, then click OK to complete the configuration.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step23.png" alt="" /></span></p>
<p><br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step24.png" alt="" /></span></p>
<p><br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step25.png" alt="" /></span></p>
<p><br /><br />9. Run the SSIS package to perform the transfer operation by clicking the play icon. <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step26.png" alt="" /></span></p>
<p><br /><br />SSIS Package execution completed &amp; 163 rows are transferred from ADO.NET Source to Flat File Destination.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step27.png" alt="" /></span></p>
<p><br /><br />Here is a Flat text file that contains the ADO.NET source result.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step28.png" alt="" /></span></p>
<p><br /><br />Please <a href="http://support.flexquarters.com/esupport/newimages/SSIS1/QODBC%20SSIS.zip">click here</a>&nbsp;to download the Sample SSIS Package.</p>
<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 evaluating your driver and have had success running SELECT queries against QuickBooks in SSMS, where I could use the QRemote DSN. When setting up the ODBC connection in SSIS, I get an error when enumerating the columns. <br /><br />Unknown Data type found in column<br /><br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SSIS1/step29.png" alt="" /></span></p>
<p>&nbsp;</p>
<p>&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;">To resolve this error, you need to select &ldquo;ADO.NET Source&rdquo; instead of ODBC Source in the SSIS package. </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Sample Code for C++ with QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2779]]></link>
<guid isPermaLink="false"><![CDATA[b1300291698eadedb559786c809cc592]]></guid>
<pubDate><![CDATA[Mon, 23 May 2016 14:35:44 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Sample Code for C++ with QODBC 
#include &lt;iostream&gt;#include &lt;windows.h&gt;#include &lt;sql.h&gt;#include &lt;sqlext.h&gt;#include &lt;string.h&gt;#include &lt;stdio.h&gt;#include &lt;stdlib.h&gt;#include &lt;conio.h&gt; using namespace std; voi...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Sample Code for C++ with QODBC </span></h2>
<p><span style="font-family: Arial,Helvetica,sans-serif;">#include &lt;iostream&gt;<br />#include &lt;windows.h&gt;<br />#include &lt;sql.h&gt;<br />#include &lt;sqlext.h&gt;<br />#include &lt;string.h&gt;<br />#include &lt;stdio.h&gt;<br />#include &lt;stdlib.h&gt;<br />#include &lt;conio.h&gt;<br /> <br />using namespace std;<br /> <br />void ConvertTimeStampStructToString(TIMESTAMP_STRUCT tTimeStamp, CHAR *strTimeStamp, LONG lSizeTimeStamp)<br />{<br />strcpy(strTimeStamp, "");<br />sprintf(sr timestamp, "%d-%d-%d %d:%d:%d," tTimeStamp.year, tTimeStamp.month, tTimeStamp.day, tTimeStamp.hour, tTimeStamp.minute, tTimeStamp.second);<br />}<br /> <br />int main()<br />{<br />SQLHENV henv = SQL_NULL_HENV; // Environment<br />SQLHDBC hdbc = SQL_NULL_HDBC; // Connection handle<br />SQLHSTMT hstmt = SQL_NULL_HSTMT; // Statement handle<br /> <br />SQLCHAR sListId[256] = "";<br />SQLCHAR sEditSequence[256] = "";<br />SQLCHAR sName[256] = "";<br />BOOL bIsActive = 0;<br />TIMESTAMP_STRUCT tTimeModified = {0};<br />TIMESTAMP_STRUCT tTimeCreated = {0}; <br />SQLINTEGER cbData;<br /> <br />SQLRETURN retcode;<br />int iKey;<br /> <br />CHAR *sTimeStamp = new CHAR[32]();<br /> <br />SQLCHAR statement[]="SELECT * FROM ShipMethod";<br /> <br />retcode = SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &amp;henv);<br />if(retcode != SQL_SUCCESS){<br />cout &lt;&lt; "SQLAllocHandle failed. exit program" &lt;&lt; endl;<br />return 0;<br />}<br />cout &lt;&lt; "SQLAllocHandle: Environment handle initialized." &lt;&lt; endl;<br /> <br />retcode = SQLSetEnvAttr(henv, SQL_ATTR_ODBC_VERSION,(SQLCHAR *)(void*)SQL_OV_ODBC2, -1);<br />if(retcode != SQL_SUCCESS){<br />cout &lt;&lt; "SQLSetEnvAttr failed. exit program" &lt;&lt; endl;<br />return 0;<br />}<br />cout &lt;&lt; "SQLSetEnvAttr : ODBC 2.0 initialized." &lt;&lt; endl;<br /> <br />retcode = SQLAllocHandle(SQL_HANDLE_DBC, henv, &amp;hdbc);<br />if(retcode != SQL_SUCCESS){<br />cout &lt;&lt; "SQLAllocHandle failed. exit program" &lt;&lt; endl;<br />return 0;<br />}<br />cout &lt;&lt; "SQLSetEnvAttr: Database handle initialized." &lt;&lt; endl;<br /> <br />retcode = SQLSetConnectAttr(hdbc, SQL_LOGIN_TIMEOUT, (SQLPOINTER)10, 0);<br />if(retcode != SQL_SUCCESS){<br />cout &lt;&lt; "SQLSetConnectAttr failed. exit program" &lt;&lt; endl;<br />return 0;<br />}<br />cout &lt;&lt; "SQLSetConnectAttr : Set Login Timeout." &lt;&lt; endl;<br /> <br />retcode = SQLConnect(hdbc, (SQLCHAR*) <strong>"QuickBooks Data" </strong>, SQL_NTS, (SQLCHAR*) NULL, 0, NULL, 0);<br />if(retcode != SQL_SUCCESS){<br />cout &lt;&lt; "SQLConnect failed. exit program" &lt;&lt; endl;<br />return 0;<br />}<br />cout &lt;&lt; "SQLConnect : Database connection successfully." &lt;&lt; endl;<br /> <br />retcode = SQLAllocHandle( SQL_HANDLE_STMT, hdbc, &amp;hstmt);<br />if(retcode != SQL_SUCCESS){<br />cout &lt;&lt; "SQLAllocHandle failed. exit program" &lt;&lt; endl;<br />return 0;<br />}<br />cout &lt;&lt; "SQLAllocHandle : Handle initialized." &lt;&lt; endl;<br /> <br />retcode = SQLExecDirect(hstmt, statement, SQL_NTS);<br />if(retcode != SQL_SUCCESS){<br />cout &lt;&lt; "SQLExecDirect failed. exit program" &lt;&lt; endl;<br />return 0;<br />}<br />cout &lt;&lt; "SQLExecDirect : Query executed successfully." &lt;&lt; endl;<br /> <br />cout &lt;&lt; endl &lt;&lt; endl &lt;&lt; endl;<br />cout &lt;&lt; "Query: <strong> SELECT * FROM ShipMethod </strong>" &lt;&lt; endl;<br />cout &lt;&lt; endl &lt;&lt; endl &lt;&lt; endl;<br />cout &lt;&lt; "ListId" &lt;&lt; ", " &lt;&lt; "TimeModified" &lt;&lt; ", " &lt;&lt; "TimeCreated" &lt;&lt; ", " &lt;&lt; "EditSequence" &lt;&lt; ", " &lt;&lt; "Name" &lt;&lt; ", " &lt;&lt; "IsActive" &lt;&lt; endl &lt;&lt; endl;<br />cout &lt;&lt; endl &lt;&lt; endl;<br />while(SQLFetch(hstmt) == SQL_SUCCESS){<br /> <br />retcode = SQLGetData(hstmt, 1, SQL_C_CHAR, (SQLPOINTER)sListId, sizeof(sListId), &amp;cbData);<br /> <br />retcode = SQLGetData(hstmt, 2, SQL_C_TIMESTAMP, (SQLPOINTER)&amp;tTimeModified, sizeof(tTimeModified), &amp;cbData);<br /> <br />retcode = SQLGetData(hstmt, 3, SQL_C_TIMESTAMP, (SQLPOINTER)&amp;tTimeCreated, sizeof(tTimeCreated), &amp;cbData);<br /> <br />retcode = SQLGetData(hstmt, 4, SQL_C_CHAR, (SQLPOINTER)sEditSequence, sizeof(sEditSequence), &amp;cbData);<br /> <br />retcode = SQLGetData(hstmt, 5, SQL_C_CHAR, (SQLPOINTER)sName, sizeof(sName), &amp;cbData);<br /> <br />retcode = SQLGetData(hstmt, 6, SQL_C_BIT, (SQLPOINTER)bIsActive, sizeof(bIsActive), &amp;cbData);<br /> <br />cout &lt;&lt; sListId &lt;&lt; ", ";<br />ConvertTimeStampStructToString(tTimeModified, sTimeStamp, sizeof(sTimeStamp));<br />cout &lt;&lt; sTimeStamp &lt;&lt; ", ";<br />ConvertTimeStampStructToString(tTimeCreated, sTimeStamp, sizeof(sTimeStamp));<br />cout &lt;&lt; sTimeStamp &lt;&lt; ", ";<br />cout &lt;&lt; sEditSequence &lt;&lt; ", ";<br />cout &lt;&lt; sName &lt;&lt; ", ";<br />cout &lt;&lt; bIsActive &lt;&lt; endl;<br />}<br />delete [] sTimeStamp;<br />cout &lt;&lt; endl &lt;&lt; endl;<br /> <br />retcode = SQLFreeHandle(SQL_HANDLE_STMT, hstmt);<br />if(retcode != SQL_SUCCESS){<br />cout &lt;&lt; "SQLFreeHandle failed. exit program" &lt;&lt; endl;<br />return 0;<br />}<br />cout &lt;&lt; "SQLFreeHandle : Handle freed." &lt;&lt; endl;<br /> <br />retcode = SQLDisconnect (hdbc);<br />if(retcode != SQL_SUCCESS){<br />cout &lt;&lt; "SQLDisconnect failed. exit program" &lt;&lt; endl;<br />return 0;<br />}<br />cout &lt;&lt; "SQLDisconnect : Close database connection." &lt;&lt; endl;<br /> <br />retcode = SQLFreeHandle(SQL_HANDLE_DBC, hdbc);<br />if(retcode != SQL_SUCCESS){<br />cout &lt;&lt; "SQLFreeHandle failed. exit program" &lt;&lt; endl;<br />return 0;<br />}<br />cout &lt;&lt; "SQLFreeHandle : Database handle freed." &lt;&lt; endl;<br /> <br /> <br />retcode = SQLFreeHandle(SQL_HANDLE_ENV, henv);<br />if(retcode != SQL_SUCCESS){<br />cout &lt;&lt; "SQLFreeHandle failed. exit program" &lt;&lt; endl;<br />return 0;<br />}<br />cout &lt;&lt; "SQLFreeHandle : Environment handle freed." &lt;&lt; endl;<br /> <br />printf("Press Any Key To Exit...");<br />getch();<br />return 0;<br />}<br /> <br />Please <a href="http://support.flexquarters.com/esupport/newimages/C++/sample-c-plus-plus-qodbc.zip">click here</a>&nbsp;to download the C++ code. </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] Troubleshooting - Getting Error &quot;Index was outside the bounds of the array.&quot; When using Import/Export tool in SQL Server]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2768]]></link>
<guid isPermaLink="false"><![CDATA[f499d34bd87b42948b3960b8f6b82e74]]></guid>
<pubDate><![CDATA[Mon, 11 Apr 2016 11:55:09 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Getting Error "Index was outside the array bounds." When using the Import/Export tool in SQL Server 
Problem Description 1:
I recently installed QODBC to get data out of a QuickBooks company file, but I get this error: "Index was outs...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Getting Error "Index was outside the array bounds." When using the Import/Export tool in SQL Server </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description 1:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I recently installed QODBC to get data out of a QuickBooks company file, but I get this error: "Index was outside the bounds of the array." <br /><br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step1.png" alt="" /></span></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description 2:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">We are attempting to import tables into SQL Server, which we use as a staging environment. We are not doing any transformations, simply trying to copy the data from QuickBooks into SQL Server using the Import Wizard.&nbsp;Below is the&nbsp;screenshot of the error we receive when attempting to do so. Details of the configuration are provided below. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Source data (QuickBooks): Microsoft .NET provider for ODBC - QODBC 32-bit configured DSN with default settings. Destination Data ( SQL Server): Microsoft OLEDB provider for SQL Server </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">We are attempting to import four tables for now. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">- Account, Class, Entity, Transactions</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">The reported error below occurs for each table. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Error: Can not load the column attributes from the schema for the current provider descriptor.<br />- COLUMN_NAME<br />- TYPE_NAME<br />- COLUMN_SIZE<br />- DECIMAL_DIGITS<br />- COLUMN_SIZE</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step17.png" alt="" /></span></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;">Please follow the steps below to resolve this error:<br /><br />1. Go to Import Export Wizard by right-clicking on your SQL Server database, clicking on Task, &amp; Click on Import Data. <br /><br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step2.png" alt="" /></span></p>
<p><br /><br />2. Choose ODBC Data Source &amp; Enter DSN &amp; Connection String, and click "Next." <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step3.png" alt="" /></span></p>
<p><br /><br />3. Choose Destination and click on "Next." <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step4.png" alt="" /></span></p>
<p><br /><br />4. Choose the second option (Write a query to specify the data to transfer) and click "Next." <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step5.png" alt="" /></span></p>
<p><br /><br />5. Write the query and click on "Next." You can change the table name &amp; question as per your requirement.<br />For Example: <br />Select * from the Account</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step6.png" alt="" /></span></p>
<p><br /><br />6. Change the destination table name to your requirement and click "Edit Mapping." <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step7.png" alt="" /></span></p>
<p><br /><br />7. You must verify the date type of all columns from the "Type" column. <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step8.png" alt="" /></span></p>
<p><br /><br />You need to make sure that you are not getting <strong>23</strong> in Type. You will get <strong>23</strong> date-type columns.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step9.png" alt="" /></span></p>
<p><br /><br />You need to replace <strong>23</strong>&nbsp;with the current&nbsp;<strong>date</strong> for all columns whose Type is <strong>23</strong> and click on "OK."</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step10.png" alt="" /></span></p>
<p><br /><br />8. Click on "next" until the finish. <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step11.png" alt="" /></span></p>
<p><br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step12.png" alt="" /></span></p>
<p><br /><br />Save and Run Package.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step13.png" alt="" /></span></p>
<p><br /><br />Complete the Wizard.<br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step14.png" alt="" /></span></p>
<p><br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step15.png" alt="" /></span></p>
<p><br /><br />9. You can see the table data imported to SQL Server's local database table. <br /><br /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLDTS/step16.png" alt="" /></span></p>
<p><br />Keywords:&nbsp;<span class="kbtitlemain">How to use DTS to import QuickBooks Data into MS SQL Server</span></p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to Use QODBC with MS Excel Power Query]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2754]]></link>
<guid isPermaLink="false"><![CDATA[044a23cadb567653eb51d4eb40acaa88]]></guid>
<pubDate><![CDATA[Wed, 30 Mar 2016 10:04:21 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ How to Use QODBC with MS Excel Power Query
Note: QODBC allows you to quickly merge live QuickBooks data into the cells of your Microsoft Excel worksheets for quick calculations and graphs. The data will retain a live link to QuickBooks, and one click wi...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> How to Use QODBC with MS Excel Power Query</span></h2>
<p><strong>Note</strong>: QODBC allows you to quickly merge live QuickBooks data into the cells of your Microsoft Excel worksheets for quick calculations and graphs. The data will retain a live link to QuickBooks, and one click will update the worksheet to the most current data in the linked QuickBooks table.</p>
<p>Open the QODBC setup screen and change the QODBC Compatibility mode from "Default" to "3.8."</p>
<p>To change, please follow the steps below:</p>
<p>Start &gt;&gt; All Programs &gt;&gt; QODBC Driver for QuickBooks &gt;&gt; Configure QODBC Data Source &gt;&gt;Go To "System DSN" Tab&gt;&gt; click the DSN "QuickBooks Data" &gt;&gt; click "Configure&rdquo;&gt;&gt; Switch to "Advanced" tab&gt;&gt; Navigate to "QODBC Compatibility"&gt;&gt; change to "3.8"</p>
<p>Note: This should fix the "Driver does not support this parameter" error message.</p>
<p align="center">&nbsp;<img src="//support.flexquarters.com/esupport/newimages/3036/QODBC Setup Screen - Advanced tab.png" alt="" /></p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p>&nbsp;</p>
<p>Similarly, change the DSN configuration for QRemote 32-Bit and QRemote 64-Bit.<br /><br /><strong>QRemote 32-Bit</strong><br />Start &gt;&gt; All Programs &gt;&gt; QODBC Driver for use with QuickBooks &gt;&gt; Configure QODBC Data Source &gt;&gt;Go to "System DSN" Tab&gt;&gt; select "QuickBooks Data<br />QRemote" DSN &gt; click "Configure"&gt;&gt; Switch to the Advanced tab and change 'ODBC Compatibility' to '3.8' and click the Apply/OK button.</p>
<p align="center">&nbsp;<img src="//support.flexquarters.com/esupport/newimages/2754/2021-10-29 15_07_23-Window.png" alt="" /></p>
<p><br /><strong>QRemote 64-Bit</strong><br />Start &gt;&gt; All Programs &gt;&gt; QODBC Driver for use with QuickBooks (64-Bit)&gt;&gt; Configure QODBC Data Source &gt;&gt;Go to "System DSN" Tab&gt;&gt; select "QuickBooks Data 64-bit QRemote" DSN &gt;&gt; click "Configure"&gt;&gt; Switch to Advanced tab and change 'ODBC Compatibility' to '3.8' and click the Apply/OK button.</p>
<p align="center">&nbsp;<img src="//support.flexquarters.com/esupport/newimages/2754/2021-10-29 15_02_08-Window.png" alt="" /></p>
<p>Start QuickBooks and log in to the QuickBooks company file as the QuickBooks user Admin.</p>
<p>Before using the MS Excel Power Query application, please make sure you have installed the MS Excel Add-in named "Power Query."</p>
<p>Please select Power Query Window.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerQuery/step1.png" alt="" /></p>
<p>Please select the data input method via From Other Sources &amp; click on From ODBC.</p>
<p>&nbsp;</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>&nbsp;</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerQuery/step2.png" alt="" /></p>
<p>&nbsp;</p>
<p>In the connection string box, write "DSN = QuickBooks Data" &amp; in the SQL Statement box, write your SQL statement &amp; click on the "OK" button. If you have 64-bit MS Excel, then you need to write <strong>DSN = QuickBooks Data 64-bit QRemote</strong> in the connection string box.</p>
<p>&nbsp;</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerQuery/step3.png" alt="" /></p>
<p>Now select the "Windows" &amp; "Use my current credentials" option and click on the "OK" button.:</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerQuery/step4.png" alt="" /></p>
<p>Now you will get data in Power Query, apply the filter &amp; other settings as per your requirement &amp; click on the "Close &amp; Load" button.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerQuery/step5.png" alt="" /></p>
<p>&nbsp;</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PowerQuery/step6.png" alt="" /></p>
<p>&nbsp;</p>
<p>If you are facing the error "ODBC: ERROR [HYC00] [Microsoft][ODBC Driver Manager] Driver does not support this parameter", please switch QODBC, QRemote 32-Bit DSN, and QRemote 64-Bit DSN to ODBC Compatibility 3.8</p>
<p>&nbsp;</p>
<p>You can also use "From Microsoft Query"&nbsp;for fetching data from QuickBooks to Excel.<br /><br />For Excel 64-Bit:</p>
<p><a href="http://qodbc.com/links/2771" target="_blank">http://qodbc.com/links/2771</a><br /><br />For Access 64-Bit:<br /><a href="http://qodbc.com/links/2772" target="_blank">http://qodbc.com/links/2772</a><br /><br />Excel 32-Bit:<br /><a href="http://qodbc.com/links/2466" target="_blank">http://qodbc.com/links/2466</a><br /><br />Access 32-Bit:<br /><a href="http://qodbc.com/links/2470" target="_blank">http://qodbc.com/links/2470</a><br /><br />Video tutorial:<br /><a href="http://qodbc.com/links/2509" target="_blank">http://qodbc.com/links/2509</a></p>
<p><br />Also, Refer:<br /><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2448/57/how-to-use-qodbc-with-microsoft-access-2007" target="_blank">How to Use QODBC with Microsoft Access 2007</a><br /><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2469/57/using-quickbooks-data-with-access-2010-import-tables-32-bit" target="_blank">Using QuickBooks Data with Access 2010 (Import Tables) 32-bit</a><br /><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2468/57/using-quickbooks-data-with-access-2010linked-tables-32-bit" target="_blank">Using QuickBooks Data with Access 2010(Linked Tables) 32-bit</a><br /><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2435/57/how-to-configure-qodbc-to-work-with-64-bit-ms-access" target="_blank">How to Configure QODBC to Work With 64-bit MS Access</a><br /><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2472/57/microsoft-access-2003-and-qodbc" target="_blank">Microsoft Access 2003 and QODBC</a></p>
<p>&nbsp;</p>
<p>Tags: The driver does not support this parameter.</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] How to Import data to QuickBooks through CSV using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2753]]></link>
<guid isPermaLink="false"><![CDATA[9dc372713683fd865d366d5d9ee810ba]]></guid>
<pubDate><![CDATA[Wed, 30 Mar 2016 09:57:29 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ How to Import data to QuickBooks through CSV using QODBC
Note: QODBC does not support direct import, but you can write VBA code that reads a CSV / Excel file &amp; generates insert statements.
There are two ways to import data to QuickBooks through CSV...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> How to Import data to QuickBooks through CSV using QODBC</span></h2>
<p><strong>Note</strong>: QODBC does not support direct import, but you can write VBA code that reads a CSV / Excel file &amp; generates insert statements.</p>
<p>There are two ways to import data to QuickBooks through CSV using QODBC.</p>
<h3><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> 1) Using Wizard</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Create a new MS Access Database file &amp; link the Customer table.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please refer to&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2470" target="_blank">Using QuickBooks Data with Access 2016 / 365 / 2013 32-bit</a> for linking the Customer table.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step7.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Go to the "External Data" tab on Microsoft Access, as shown in the screenshot below, and click on the "Text File."</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step8.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">The "Get External Data" screenshot will be shown below. Select the CSV file by clicking the "Browse" button. (*Note: the file name must be less than 64 characters. Otherwise, Microsoft Access will not be able to import it. Choose the second option. Append the copy of the records to the table.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step9.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Next, select the option "Delimited - Characters such as comma or tab separate each field," as shown in the screenshot below, and click "Next."</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step10.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Next, make sure "Comma" is selected in the "Choose the delimiter that separates your fields" and the double quotes symbol "s selected in the "Text Qualifier" as shown in the screenshot below, and click "Next" to continue.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step11.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now, click on the Advanced button to configure import fields.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step12.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now write the field name you want to insert from the CSV file &amp; click OK.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step13.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Click Finish to complete the import process.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step14.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Import Done. Customer data from CSV is inserted into the QuickBooks customer table.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step15.png" alt="" /></span></p>
<h3>&nbsp;</h3>
<p>Or</p>
<h3>&nbsp;</h3>
<h3><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">2) Using VBA Code</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please refer to&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2571" target="_blank">Using QuickBooks Data with VBA</a></span></p>
<p>In this tutorial, we are showing a sample VBA script inserting Customer &amp; Invoice.</p>
<h3><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Importing Customer to QuickBooks through CSV file using QODBC &amp; Microsoft Access VBA</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">We have a Customer CSV file with Customer Name, Company Name, Phone &amp; Email fields.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">We will import these fields to QuickBooks using VBA. You can see the records below from the Customer CSV file.</span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step1.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please refer to the sample VBA code for Importing Customers to QuickBooks through a CSV file using QODBC.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">By clicking on the "Add Customer" button, the Customer list in a CSV file will be imported into QuickBooks using QODBC.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step2.png" alt="" /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step3.png" alt="" /></span></p>
<p><strong>Please Note: You need to change the CSV file location &amp; VBA script according to your CSV file location &amp; file data.</strong></p>
<p>Please refer to the code below code which is used in this example:<br /><br /> <strong>Import Customer:</strong></p>
<p>&nbsp;</p>
<p>Option Compare Database<br /><br />Public Sub exampleCsvImportCustomer()<br /><br />Dim oConnection As New ADODB.Connection<br />Dim sConnectString<br />Dim MyArray As Variant<br />Dim fso As Variant<br />Dim objStream As Variant<br />Dim objFile As Variant<br />Dim sSQL As String<br />Dim sMsg<br />Dim rs<br />Dim I As Integer<br />i = 0<br />sConnectString = "DSN=Quickbooks Data;OLE DB Services=-2;"</p>
<p>'' For 64-bit use this one--&gt;sConnectString = "DSN=<strong>QuickBooks Data 64-bit QRemote</strong>;"</p>
<p>sSQL = "SELECT * FROM customer"<br /><br />Set rs = New ADODB.Recordset<br />oConnection.Open (sConnectString)<br />rs. Open sSQL, Connection, adopt dynamic, adLockOptimistic<br /><br />Set fso = CreateObject("Scripting.FileSystemObject")<br /><br />If fso.FileExists("C:\Input\Customer.csv") Then<br />Set objStream = fso.OpenTextFile("C:\Input\Customer.csv", 1, False, 0)<br />End If<br /><br />Do While Not objStream.AtEndOfStream<br />strLine = objStream.ReadLine<br />ReDim MyArray(0)<br />MyArray = Split(strLine, ",")<br />rs.AddNew<br />rs("Name") = MyArray(0)<br />rs("CompanyName") = MyArray(1)<br />rs("Phone") = MyArray(2)<br />rs("Email") = MyArray(3)<br />rs.Update<br />i = i + 1<br /><br />Loop<br /><br />sMsg = sMsg &amp; "Customer Added!!!"<br />MsgBox sMsg<br /><br />End Sub</p>
<p>Please Note: If you have a 64-bit application, then you need to use QRemote 64-bit DSN "<strong>QuickBooks Data 64-bit QRemote</strong>" (i.e., sConnectString = "DSN=<strong>QuickBooks Data 64-bit QRemote</strong>; OLE DB Services=-2;")</p>
<h3><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Importing Invoice to QuickBooks through CSV file using QODBC &amp; Microsoft Access VBA</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">We have an Invoice CSV file with CustomerRefListID, RefNumber, InvoiceLineItemRefListID, InvoiceLineDesc, InvoiceLineRate, InvoiceLineQuantity, InvoiceLineSalesTaxCodeRefListID &amp; FQSaveToCache fields.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">In this example, we are creating two Invoices, each having 3 invoice lines. We will import these fields into QuickBooks using VBA. You can see the records below from the Invoice CSV file.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step4.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please refer to the sample VBA code for Importing Invoices to QuickBooks through a CSV file using QODBC.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">By clicking the "Add Invoice" button, the Invoice list in a CSV file will be imported into QuickBooks using QODBC.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step5.png" alt="" /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CSV/step6.png" alt="" /></span></p>
<p><strong>Please Note: You need to change the CSV file location &amp; VBA script according to your CSV file location &amp; file data.</strong></p>
<p>Please refer to the code below code which is used in this example:<br /><br /> <strong>Import Invoice:</strong></p>
<p>&nbsp;</p>
<p>Option Compare Database<br /><br />Public Sub exampleCsvImportInvoice()<br />Dim oConnection As New ADODB.Connection<br />Dim sConnectString<br />Dim MyArray As Variant<br />Dim fso As Variant<br />Dim objStream As Variant<br />Dim objFile As Variant<br />Dim sSQL As String<br />Dim rs<br />Dim sMsg<br />Dim I As Integer<br />i = 0<br /><br />sConnectString = "DSN=Quickbooks Data;OLE DB Services=-2;"</p>
<p>'' For 64-bit use this one--&gt;sConnectString = "DSN=<strong>QuickBooks Data 64-bit QRemote</strong>;"</p>
<p>sSQL = "SELECT * FROM InvoiceLine"<br /><br />Set rs = New ADODB.Recordset<br />oConnection.Open (sConnectString)<br />rs.Open sSQL, oConnection, adOpenDynamic, adLockOptimistic<br /><br />Set fso = CreateObject("Scripting.FileSystemObject")<br /><br />If fso.FileExists("C:\Input\Invoice.csv") Then<br />Set objStream = fso.OpenTextFile("C:\Input\Invoice.csv", 1, False, 0)<br />End If<br /><br />Do While Not objStream.AtEndOfStream<br />strLine = objStream.ReadLine<br />ReDim MyArray(0)<br />MyArray = Split(strLine, ",")<br />rs.AddNew<br />rs("CustomerRefListID") = MyArray(0)<br />rs("RefNumber") = MyArray(1)<br />rs("InvoiceLineItemRefListID") = MyArray(2)<br />rs("InvoiceLineDesc") = MyArray(3)<br />rs("InvoiceLineRate") = MyArray(4)<br />rs("InvoiceLineQuantity") = MyArray(5)<br />rs("InvoiceLineSalesTaxCodeRefListID") = MyArray(6)<br />rs("FQSaveToCache") = MyArray(7)<br />rs.Update<br />i = i + 1<br /><br />Loop<br /><br />sMsg = sMsg &amp; "Invoice Added!!!"<br />MsgBox sMsg<br /><br />End Sub</p>
<p>Please Note: If you have a 64-bit application, then you need to use QRemote 64-bit DSN "<strong>QuickBooks Data 64-bit QRemote</strong>" (i.e., sConnectString = "DSN=<strong>QuickBooks Data 64-bit QRemote</strong>; OLE DB Services=-2;")</p>
<p><a href="http://support.flexquarters.com/esupport/newimages/CSV/VBA-CSV.zip"><span style="font-family: Arial,Helvetica,sans-serif;"> Download Sample</span></a></p>
<p>Also, Refer: <br /><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2439" target="_blank">QODBC Reports Architecture Mismatch Problem When connecting</a></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Auto Login as Service and Syncing tables to SQL Server]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2731]]></link>
<guid isPermaLink="false"><![CDATA[08f38e0434442128fab5ead6217ca759]]></guid>
<pubDate><![CDATA[Mon, 11 Jan 2016 14:02:59 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Auto Login as Service and Syncing tables to SQL Server 
Problem Description:
So the QODBC works excellently running on the machine. We intend to integrate into our website / Intranet to create customers or make changes from the web. I...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Auto Login as Service and Syncing tables to SQL Server </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;">So the QODBC works excellently running on the machine. We intend to integrate into our website / Intranet to create customers or make changes from the web. I noticed QuickBooks needs to be logged in and open to function. Is there a server version that will not require a user to log in or pass the info along automatically, so the website continues to function correctly?<br /><br />Is there a way to try the server version by syncing to the SQL server? I need to be able to dump the customer table once daily into SQL. Maybe other tables in the future, like orders or quotes. Does the server version need a remote desktop session open to work? If the server reboots because of an update, I need to log in to make it work again. That doesn&rsquo;t seem very feasible for us.</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;">QODBC is not a driver you would install on a server; multiple workstations would have access to it. The server version of QODBC is for synchronizing SQL Server with QuickBooks data or for a web or intranet application.<br /><br />&gt;&gt;Is there a server version that will not need a user logged in or pass the info along automatically, so the website continues to function correctly? <br />&gt;&gt;Does the server version need to have a remote desktop session open to work? <br /><br />Please refer to how<a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2557/0/how-to-setup-qodbc-to-access-quickbooks-when-there-is-no-one-logged-in" target="_blank">&nbsp;to Setup QODBC to Access QuickBooks when no one Logged in</a>.<br /><br />OR<br /><br />You may configure a session-0 to start and start QuickBooks and QRemoteServer automatically.<br />When you configure session-0, you are setting up the auto login of a user, and that user will have a desktop session running. <br /><br />&gt;&gt;Is there a way to try the server version by syncing to the SQL server? <br /><br />You can use La inked Server on SQL Server and connect to QuickBooks Data using QRemote. When you query the Linked Server/tables, you will always get live QuickBooks Data.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">For a dump of all the tables or selected tables from QODBC to Tables in SQL Server Database, you may write a script to create the table(s) in SQL Server and get data from the linked server.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">e.g. <br />SELECT * into LocalSQLTableName FROM OPENQUERY(YourLinkedServerName, 'SELECT * FROM LinkedTableName')<br /><br />SELECT * into tblVendor FROM OPENQUERY(QRemote, 'SELECT * FROM Vendor') <br /> <br />You can add the script to the agent to run periodically.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please refer to the below-mentioned article for How to create a Link Server with MS SQL 2005/2008/2012 Using QODBC/QRemote.<br /><br />For 32-bit SQL Server, refer to:<br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2514" target="_blank">How to create a Link Server with MS SQL 2005/2008/2012 32-bit Using QODBC/QRemote</a><br /><br />For 64-bit SQL Server, refer to:<br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2458" target="_blank">How to create a Link Server with MS SQL 2005/2008/2012 64-bit Using QODBC/QRemote</a><br /><br /> <br />Also, Refer:<br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2511" target="_blank">How to set up QODBC Driver to auto-connect to QuickBooks. (Video)</a><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2360" target="_blank">How to setup QODBC for Auto-login into QuickBooks</a><br /><br /><br /><br /> <br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Getting Timeout error in SQL Server's Linked Server using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2719]]></link>
<guid isPermaLink="false"><![CDATA[7aee26c309def8c5a2a076eb250b8f36]]></guid>
<pubDate><![CDATA[Wed, 30 Dec 2015 11:09:50 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Getting a timeout error in SQL Server's Linked Server using QODBC 
Problem Description:
I recently upgraded from 1.0.0.7 to 1.0.0.312. Everything was pretty smooth, except for our Linked Servers timeout now. I test the QODBC connectio...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Getting a timeout error in SQL Server's Linked Server using QODBC </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 recently upgraded from 1.0.0.7 to 1.0.0.312. Everything was pretty smooth, except for our Linked Servers timeout now. I test the QODBC connection, and it is okay. However, when I try to add the Linked Server for that successful ODBC connection, it just times out after a long period of time, approximately 15 minutes. </span></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;"> Please follow the steps below to resolve the issue.<br /><br /> <strong>1. Verify the linked server configuration.</strong><br /><br />For 32-bit SQL Server, refer to:<br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2514" target="_blank">How to create a Link Server with MS SQL 2005/2008/2012 32-bit Using QODBC/QRemote</a><br /><br />For 64-bit SQL Server, refer to:<br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2458" target="_blank">How to create a Link Server with MS SQL 2005/2008/2012 64-bit Using QODBC/QRemote</a><br /><br /> <strong>2. Verify QRemote Version.</strong><br /><br />If your SQL Server and QuickBooks are on different machines &amp; you are connecting remotely, then please make sure the Version on QRemote on the Client machine is the same as QRemote on the Server Machine.<br /><br />For Example:<br /><br />If the client machine QRemote version is 1.0.0.312, then the server machine QRemote version should also be 1.0.0.312.<br />If the QRemote version on both machines is different, please make both versions the same by installing the same QODBC version.<br /><br />You can get QODBC's latest version at the link below:<br /><br /> <a href="http://www.qodbc.com/qodbcDownload.htm" target="_blank">QODBC Driver for QuickBooks Download</a><br /><br /> <strong>3. Verify QRemote server configuration.</strong><br /><br />Please verify QRemote Server &amp; QRemote Client DSNs are configured correctly by referring to thelink belowk:<br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2649" target="_blank">QRemote Configuration</a><br /><br /> <strong>4. Restart SQL Server Services.</strong><br /><br />If you have followed steps #1,2,3 &amp; still getting a timeout, then please restart SQL Server Services &amp; test again. Open SQL Server Management Studio, Right-click on the Server name &amp; click on Restart.<br /><br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><strong><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLTimeOut/step1.png" alt="" border="0" /></strong></span></p>
<p><br />Please click on yes to run the service.</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><strong><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLTimeOut/step2.png" alt="" border="0" /></strong></span></p>
<p><br />Please click on yes to restart the service.</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><strong><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLTimeOut/step3.png" alt="" border="0" /></strong></span></p>
<p><br />SQL Server Service is restarting.</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><strong><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SQLTimeOut/step4.png" alt="" border="0" /></strong></span></p>
<p><br /><br />After restarting the SQL Server Service, please test again.</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] Troubleshooting - Microsoft  Excel 2013 or Microsoft Access 2013 (Office 365 / 365) crashes / Required Activation]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2718]]></link>
<guid isPermaLink="false"><![CDATA[ad47a008a2f806aa6eb1b53852cd8b37]]></guid>
<pubDate><![CDATA[Wed, 30 Dec 2015 10:24:22 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Microsoft &nbsp;Excel 2013 (Office 365 / 2016) crashes / Required Activation
Troubleshooting - Microsoft &nbsp;Access 2013 (Office 365 / 2016) crashes / Required Activation
Problem Description 1:
 I have been having significant diffic...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting - Microsoft &nbsp;Excel 2013 (Office 365 / 2016) crashes / Required Activation</span></h2>
<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting - Microsoft &nbsp;Access 2013 (Office 365 / 2016) crashes / Required Activation</span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description 1:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> I have been having significant difficulties with QODBC since upgrading to QuickBooks Enterprise 16.0. The Test Connection in the QODBC Setup Screen says it is connected, and the "QODBC Test Tool" returns results. Still, Excel crashes as soon as you select the QuickBooks Data* Database option in the connection wizard. </span></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description 2:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> I downloaded the QODBC drivers today to start work on a development project, but I am facing an&nbsp;issue. Suppose I click the Test Connection button on the General tab of the Setup dialog. The test is successful. But when I try to use MS Access 2013 or MS Excel 2013 and connect to a QuickBooks data set using the ODBC driver, MS Access and MS Excel both crash.</span></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description 3:</span></span></h3>
<p><span style="font-family: arial, helvetica, sans-serif;">We have two licenses for QODBC Online. One is used at the consultant's office, and the client Admin uses one&mdash;both obtained authorization for access to QuickBooks using the same QuickBooks Online Login.</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;">The problem appeared this morning after the consultant (me) loaded a new copy of the Access 2016 code the client uses. Because the DNS entries on the two different systems have different names, I attempted to use the Access Linked Data Manager to relink the databases to access. When I did this, I got an Authorization error, which I interpreted to mean that I needed to reconnect the databases in the DNS object to QuickBooks Online. I reverted to using the "QODBC Online Test Tool," and it also got the authorization error. I then used the DNS Configure function for the 32-bit DNS entry for QODBC and disconnected from QuickBooks Online. I then connected to QuickBooks Online, and everything functioned as expected. Now, when I attempt to use "QODBC Online Test Tool" to access the QuickBooks Online Data, I get the message that prompts "QODBC Driver QuickBooks Online not licensed for this QuickBooks Edition."</span></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description 4:</span></span></h3>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Access 2016 crashes with no error message when I try to open a QuickBooks table.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">The problem occurs with just a simple table or a query: no error messages, no clues. Access shuts down. I cleared messages and then retired.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">2018-10-17 17:50:54 QODBC Ver: 16.00.00.313 *********************************************************************************************************************<br />service: Unknown<br />Startup Failure Calling Update: 46 - REGISTRY SET ERROR</span></p>
<p>&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;"> Due to some security added to Office 2013 &amp; later versions, this issue is happening. This issue only occurs when using MS Office 2013 / 2016 / 365 and not with MS Office 2010 or earlier.<br />MS Office is not allowing writing to the registry; thus, QODBC has this error.<br /><br />Please run the patch or follow the manual steps to fix this issue. <br /> </span></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Patch:</span></span></h3>
<p>Please close QuickBooks, Access, Excel, and any other application using QODBC.<br /> <br />Download the fix patch by <a href="http://support.flexquarters.com/esupport/supportfiles/Office2013Fix-20151221.zip">clicking here</a><br /><br />Extract the file, right-click on the zip file &amp; click on Extract ALL.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/Office365/step1.png" alt="" border="0" /></p>
<p>Select the destination &amp; extract the file by clicking on Extract.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/Office365/step2.png" alt="" border="0" />/p&gt;</p>
<p><span style="font-family: arial, helvetica, sans-serif;">You will find two exe from the extracted folder.</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/Office365/step9.png" alt="" border="0" /></p>
<p><span style="font-family: arial, helvetica, sans-serif;">First, Right-click on "x64-Office2013Fix-20151221.exe" &amp; click "Run as administrator."</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/Office365/step8.png" alt="" border="0" /></p>
<p>Please click on yes to run the exe.</p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/Office365/step3.png" alt="" border="0" /></p>
<p><span style="font-family: arial, helvetica, sans-serif;">After the process is completed, press any key to close the application.</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/Office365/step4.png" alt="" border="0" /></p>
<p><span style="font-family: arial, helvetica, sans-serif;">Now, First Right-click on "x86-Office2013Fix-20151221.exe" &amp; click "Run as administrator."</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/Office365/step7.png" alt="" border="0" /></p>
<p><span style="font-family: arial, helvetica, sans-serif;">Please click on yes to run the exe.</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/Office365/step5.png" alt="" border="0" /></p>
<p><span style="font-family: arial, helvetica, sans-serif;">After the process is completed, press any key to close the application.</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/Office365/step6.png" alt="" border="0" /></p>
<p><span style="font-family: arial, helvetica, sans-serif;">Run your application and see if that has fixed the issue.</span><br /><br /><span style="font-family: arial, helvetica, sans-serif;">If the above does not resolve the issue, then please follow the alternate solution(Manual Steps):</span></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Manual Steps:</span></span></h3>
<p><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2600" target="_blank">QODBC shows RegFile1 License error when using MS Excel 2013 or Access 2013, Excel Crash, Access Crash (Video)</a><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2504" target="_blank">MS Excel 2013 or Access 2013 (Office 365) crashes as soon as trying to connect to QuickBooks Data</a></p>
<p><span style="font-family: arial, helvetica, sans-serif;">If you still face issues, try using "QuickBooks Data QRemote."</span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/Office365/step10.png" alt="" border="0" /></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Online] Connecting QODBC Online Driver to QuickBooks Online for the First Time  (Video)]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2684]]></link>
<guid isPermaLink="false"><![CDATA[7c4bf50b715509a963ce81b168ca674b]]></guid>
<pubDate><![CDATA[Wed, 30 Sep 2015 12:42:55 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Connecting QODBC Online Driver to QuickBooks Online for the First Time&nbsp; (Video)
For system requirement details of QODBC Online,&nbsp;click here.
How to install QODBC Online &amp; Use Microsoft Excel/Access with QODBC

You can also see: How to use...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Connecting QODBC Online Driver to QuickBooks Online for the First Time&nbsp; (Video)</span></h2>
<p><span style="font-family: Arial,Helvetica,sans-serif;">For system requirement details of QODBC Online,&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2816" target="_blank">click here</a>.</span></p>
<p>How to install QODBC Online &amp; Use Microsoft Excel/Access with QODBC</p>
<p><object width="900" height="550" data="//www.youtube.com/embed/yFjo2Y5ovOo"></object></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You can also see: <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2658" target="_blank">How to use QODBC Online with QuickBooks Online Edition</a> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">For system requirement details of QODBC Online,&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2816" target="_blank">click here</a>.</span></p>
<p>Tags:</p>
<p>Installing QODBC Online</p>
<p>How to connect to QODBC Online</p>
<h3>&nbsp;</h3>
<p>Tags: QuickBooks Online, QBO, MS Access, Excel, QODBC Online, connect online</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Getting Multiple-step OLE DB operation generated errors in SQL Server]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2645]]></link>
<guid isPermaLink="false"><![CDATA[a7789ef88d599b8df86bbee632b2994d]]></guid>
<pubDate><![CDATA[Mon, 04 May 2015 14:05:59 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Getting Multiple-step OLE DB operation generated errors in SQL Server
Problem Description:
 Trying to insert into SalesOrderLine and getting a 'Multiple-step' error. INSERT INTO QBREMOTE...SalesOrderLine (CustomerRefListID, TemplateRef...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Getting Multiple-step OLE DB operation generated errors in SQL Server</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> Trying to insert into SalesOrderLine and getting a 'Multiple-step' error. <br /><br />INSERT INTO QBREMOTE...SalesOrderLine (CustomerRefListID, TemplateRefListID, SalesOrderLineItemRefFullName, SalesOrderLineQuantity, SalesOrderLineRate, SalesOrderLineTaxCodeRefListID, ClassRefListID, FQSaveToCache) VALUES ('8000343B-1393961058', '80000008-1377787801 ', 'R1', 1.0000, 500.00, '80000001-1377787801 ', '80000003-1393947522', 0) <br /><br />OLE DB provider "MSDASQL" for linked server "QBREMOTE" returned the message "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".<br /><br />Msg 7343, Level 16, State 2, Line 1<br /><br />The OLE DB provider "MSDASQL" for linked server "QBREMOTE" could not INSERT INTO table "[QBREMOTE]...[SalesOrderLine]". <br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> You need to change the "Maximum Field Name Length" value from QODBC Setup Screen&gt;&gt; Advanced tab to resolve "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done." at the time of insertion.<br /><br />Please follow the instructions below to change the "Maximum Field Name Length" value.<br /><br />Start&gt;&gt;All Programs&gt;&gt; QODBC Driver for use with QuickBooks&gt;&gt; Configure QODBC Data Source&gt;&gt;Go To "System DSN" (If you are using System DSN) or "User DSN" (If you are using User DSN) Tab &gt;&gt; select your DSN&gt;&gt; click "configure"&gt;&gt; Advanced &gt;&gt; "Maximum Field Name Length" change to 100.&nbsp;</span>&nbsp;</p>
<p align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MOLEDB/step1.png" alt="http://support.flexquarters.com/esupport/newimages/MOLEDB/step1.png" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Also, you can use openquery, which can insert records in the SalesOrderLine table:<br /><br />Insert openquery(QBREMOTE,' select CustomerRefListID, TemplateRefListID, SalesOrderLineItemRefFullName, SalesOrderLineQuantity, SalesOrderLineRate, SalesOrderLineTaxCodeRefListID, FQSaveToCache from SalesOrderLine where 1=0') values ('160000-933272658', '120000-1071512690', 'Wood Door: Exterior', 1.0000, 555.00, '10000-999022286', 0) <br /><br />Please refer:<br /><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2367/50/how-to-do-inserts-updates-and-deletes-using-openquery-with-linked-ms-sql-servers"> How to do INSERTs, UPDATEs, and DELETEs using OPENQUERY with Linked MS SQL Servers</a></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QXL-Desktop] How to use QXL]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2641]]></link>
<guid isPermaLink="false"><![CDATA[f21e255f89e0f258accbe4e984eef486]]></guid>
<pubDate><![CDATA[Thu, 26 Mar 2015 13:31:58 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[How to use QXL
Step 1 - Download QXL
 If you haven't already downloaded QXL, go to the download page&nbsp;now. Don't forget to read the "Readme" file during installation for the latest information on QXL setup, new features, and other driver information...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">How to use QXL</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Step 1 - Download QXL</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> If you haven't already downloaded QXL, go to the <a href="http://qxl1.com/qxl-for-quickbooks-desktop-downloads/">download page</a>&nbsp;now. Don't forget to read the "Readme" file during installation for the latest information on QXL setup, new features, and other driver information. Save the self-extracting executable "QXLSetup.exe" in a temporary directory or your "My Documents" folder to extract the installation files.</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Step 2 - Running the Installer:</span></h3>
<p>Click on the Install program from within Windows to install the driver. Select the destination directory to install the QXL support files. Click "OK" to continue.</p>
<p align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/QXL/step1.png" alt="" /></p>
<p align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/QXL/step6.png" alt="" /></p>
<p>The QXL - QuickBooks Export Made Easy&reg; has been successfully installed on your computer. You can begin to use it because it will immediately run as a 30-day evaluation version.</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Step 3 - Use QXL:</span></h3>
<p align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/QXL/step7.png" alt="" /></p>
<p>After installation, you may notice the following icons on the desktop.</p>
<p align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/QXL/step28.png" alt="" /></p>
<p>QXL &ndash; Silent Mode - It uses the last saved settings of QXL and automatically starts executing the data export with no user interface.QXL &ndash; Direct Mode - It uses the previously saved settings of QXL and automatically starts executing the data export with the user interface, i.e., displaying progress data export.QXL &ndash; Manual execution of Data Export/Update Settings/Activation-Deactivation. You can select tables and destinations to which the files should be exported. Start QuickBooks, log in to your company file, switch back to QXL, and click Export Data.</p>
<p align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/QXL/step8.png" alt="" /></p>
<p align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/QXL/step9.png" alt="" /></p>
<p>After the export is completed. The exported data folder will open.</p>
<p align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/QXL/step10.png" alt="" /></p>
<p>Exported data is placed at the below location by default: C:\Users\User Name\Documents\QXL\</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">QXL Features:</span></h3>
<p>1. Export QuickBooks Data to XML format via QODBC.</p>
<p>2. Export QuickBooks Data to CSV format via QODBC.</p>
<p>3. Ability to choose export file(s) location.</p>
<p>4. Ability to export to Separate files or a single file.</p>
<p>5. Ability to export all selected, tabled, or excluded tables.</p>
<p>6. Ability to save your default settings from Options.</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Also, Refer:</span><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2786" target="_blank">QXL options and settings</a></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to use Date() And DateAdd() function in QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2638]]></link>
<guid isPermaLink="false"><![CDATA[06c284d3f757b15c02f47f3ff06dc275]]></guid>
<pubDate><![CDATA[Fri, 13 Mar 2015 10:05:07 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How to use Date() And DateAdd() function in QODBC
Problem Description:
 I want to write some select statements on InvoiceLine and SalesReceiptLine that return all records dated WITHIN the past 30 days relative to whatever TODAY is. I'm...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - How to use Date() And DateAdd() function in QODBC</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I want to write some select statements on InvoiceLine and SalesReceiptLine that return all records dated WITHIN the past 30 days relative to whatever TODAY is. I'm very familiar with Microsoft SQL syntax and would normally say... WHERE TxnDate &gt;= getdate()-30<br /><br />How can I reference "30 days ago" using the QODBC driver?<br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> In QODBC, the function CURATE() &ndash; Returns the current computer system date as a date value.<br /><br />For example, for Today, April 18, 2006, when the following query:-<br /><br />SELECT {fn CURDATE()} as Today, ({fn CURDATE()}-30) as "30 Days Ago", TxnDate, RefNumber, InvoiceLineDesc FROM invoiceline WHERE TxnDate &gt;= ({fn CURDATE()}-30) is run in <strong>QODBC Test Tool. The</strong>&nbsp;results were:</span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2638/Q1.png" alt="" /></span></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I need to select only the transactions that occurred in the last 90 days. I used the Access functions Date() and DateAdd() in the Criteria to filter for those transactions, but I am getting the error message "Invalid Procedure Call." Here are the Criteria that I am trying to use:<br /><br />Between Date() And DateAdd("dd",-91,Date())<br /><br />What am I doing wrong? Does QODBC have different functions for this?<br /><br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> To write Pass-thru queries for reading and to write QuickBooks&reg; data using QODBC and Microsoft&reg; Access, you must use the proper date format.<br /><br />You may use Date Macros, but you may also use specific from and to dates for more flexibility.<br /><br />This function formats dates with the QODBC format: {d 'YYYY-MM-DD'}. There is no need to remember the form, just the function's name: fncqbDate.<br /><br /> <br /><br /> <strong>Function:</strong> <br /><br />Function fncqbDate(myDate As Date) As String<br />myDate = Nz(myDate, Now)<br />fncqbDate = "{d '" &amp; Year(myDate) &amp; "-" &amp; Right("00" &amp; Month(myDate), 2) &amp; "-" &amp; Right("00" &amp; Day(myDate), 2) &amp; "'}"<br />End Function<br /> <br /><br /> <strong>Example:</strong> <br /><br />You might use fncqbDate to help create an SQL string with VBA from user input dates. <br /><br />mySQL = "sp_report customtxnDetail show TxnType,TxnID, RefNumber, Date, Name ,Memo , Amount,account parameters TxnFilterTypes = 'Check',SummarizeRowsBy = 'TotalOnly',dateFROM = " &amp; fncqbDate(BegDate) &amp; ", dateTO = " &amp; fncqbDate(EndDate) &amp; " where account like '%checking%'" <br /><br /> <br /><br /> <strong>Put Some Checks into a Table:</strong> <br /><br />Try this out and put some checks on a table:<br />1. Copy and paste fncqbDate (first function above) into a module.<br />2. Copy and paste fncGetChecks (function below) into a module.<br />3. If you need QuickBooks&reg; to open to using QODBC, open it and ensure you have authorized QuickBooks&reg; to communicate with QODBC. 4. Make sure the following references are checked in your Microsoft&reg; Access database:<br />Visual Basic For Applications<br />Microsoft Access 10.0 Object Library<br />Microsoft DAO 3.6 Object Library<br /> <br /><br />To use fncGetChecks, call it from a form or type fncGetChecks into the immediate window of the Visual Basic Editor. <br /><br />Change the default connection string if necessary by entering your connection string when prompted. <br /><br />The function will ask for: a name for the new query (make sure this doesn't already exist in your database)<br /><br />a beginning date<br /><br />an ending date<br /><br />Your connection string, which may or may not be the default offered<br /><br /> <br /><br />Function fncGetChecks()<br />On Error GoTo fncGetChecks_err<br />Dim q As String, Date1 As Date, Date2 As Date<br />q = InputBox("Give your temporary query a name:", "Temporary Pass-Thru Query", "")<br />Date1 = InputBox("Enter start date:", "Start Date", FormatDateTime(Now, vbShortDate))<br />Date2 = InputBox("Enter end date:", "End Date", FormatDateTime(Now, vbShortDate))<br />Dim db As DAO.Database, qd As DAO.QueryDef<br />Set db = CurrentDb<br />Set qd = db.CreateQueryDef(q)<br />qd.ReturnsRecords = True<br />qd.Connect = InputBox("Enter connection string:", "", "ODBC;DSN=QuickBooks Data;SERVER=QODBC")<br />qd.SQL = "sp_report customtxnDetail show TxnType,TxnID, RefNumber, Date, Name ,Memo , Amount,account " &amp; _<br />"parameters TxnFilterTypes = 'Check',SummarizeRowsBy = 'TotalOnly'," &amp; _<br />"dateFROM = " &amp; fncqbDate(Date1) &amp; ", dateTO = " &amp; fncqbDate(Date2) &amp; _<br />" where account like '%checking%'"<br />DoCmd.RunSQL "select * into tbl" &amp; q &amp; " from " &amp; q<br />Set qd = Nothing<br />Set db = Nothing<br />DoCmd.DeleteObject acQuery, q<br />DoCmd.OpenTable "tbl" &amp; q<br />Exit Function<br />fncGetChecks_err:<br /> <br />MsgBox Erl &amp; " " &amp; Err.Number &amp; ": " &amp; Err.Description<br />End Function <br /><br /><br />Also, refer to the following:<br /><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/1225/57/how-to-use-prompted-date-ranges-in-ms-access-2007-using-vista"> How to Use Prompted Date Ranges in MS Access 2007 using Vista&nbsp;</a><br /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - &quot;Error Parsing complete XML return string&quot; error when trying to update table PriceLevelPerItem in MS Access]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2635]]></link>
<guid isPermaLink="false"><![CDATA[ed277964a8959e72a0d987e598dfbe72]]></guid>
<pubDate><![CDATA[Mon, 02 Mar 2015 12:48:10 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - "Error Parsing complete XML return string" error when trying to update the table PriceLevelPerItem in MS Access
Problem Description:
I constructed an Access database file (32bit Access 2003) with tables linked to QuickBooks. I can pull...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - "Error Parsing complete XML return string" error when trying to update the table PriceLevelPerItem in MS Access</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">I constructed an Access database file (32bit Access 2003) with tables linked to QuickBooks. I can pull information from the related tables to other tables in Access using update queries with no problems. When I try to run an update query to change a value in the QuickBooks linked table, I receive the following error. I need help figuring out the error and how to fix it.<br /><br />My query is:<br /><br />UPDATE PriceLevelPerItem INNER JOIN ItemPricing ON PriceLevelPerItem.FQPrimaryKey &lt;&gt; ItemPricing.FQPrimaryKey SET PriceLevelPerItem.PriceLevelPerItemCustomPrice = [ItemPricing].[PriceLevelPerItemCustomPrice];</span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/PriceLevelPerItem/step1.png" alt="http://support.flexquarters.com/esupport/newimages/PriceLevelPerItem/step1.png" width="377" height="110" /></span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">You need to include PriceLevelPerItemItemRefListID in your update statement.<br /><br />You need to include the below-the-line in your update statement to resolve this issue.<br /><br />SET PriceLevelPerItem.PriceLevelPerItemItemRefListID = PriceLevelPerItem.PriceLevelPerItemItemRefListID For Example:<br /><br />UPDATE PriceLevelPerItem INNER JOIN ItemPricing ON PriceLevelPerItem.FQPrimaryKey &lt;&gt; ItemPricing.FQPrimaryKey SET PriceLevelPerItem.PriceLevelPerItemItemRefListID = PriceLevelPerItem.PriceLevelPerItemItemRefListID, PriceLevelPerItem.PriceLevelPerItemCustomPrice = [ItemPricing].[PriceLevelPerItemCustomPrice];<br /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Cannot use alias in MS Query]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2626]]></link>
<guid isPermaLink="false"><![CDATA[e354fd90b2d5c777bfec87a352a18976]]></guid>
<pubDate><![CDATA[Mon, 02 Mar 2015 11:54:46 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Cannot use an alias in MS Query
Problem Description:
 I am getting the following error message when trying to SELECT data fields AS Alias, the statement runs fine otherwise.[sql syntax error] Expected lexical element not found:= Please...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Cannot use an alias in MS Query</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I am getting the following error message when trying to SELECT data fields AS Alias, the statement runs fine otherwise.<br /><br />[sql syntax error] Expected lexical element not found:= <br /><br />Please see the following SQL statement: <br /><br />SELECT Item. Name AS SKU, Item.CustomFieldColor AS Item, Item.Description, Item.SalesPrice, Item.PurchaseCost, Item.QuantityOnHand FROM Item Item WHERE (Item.Name&lt;&gt;'IFR' And Item.Name&lt;&gt;'OTW') AND (Item.Description&lt;&gt;'') AND (Item.Type='ItemInventory') ORDER BY Item.Name<br /><br />The above statement is working fine in QODBC Test Too and MS Access. But I am facing an issue in MS Excel. &nbsp;</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;</span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MSQueryAlias/step1.PNG" alt="http://support.flexquarters.com/esupport/newimages/MSQueryAlias/step1.PNG" width="1198" height="554" /></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> MS Excel has an issue when you alias in the query. When you try to use Microsoft Query to return data from some third-party databases into Microsoft Excel, apostrophes (') around alias names can cause the query to fail. <br /><br />Please refer to the link below to resolve this issue:<br /><br /> <a href="https://support.microsoft.com/en-us/kb/298955" target="_blank"> Using a field alias in Query does not work with some third-party databases </a><br /><br />You can either apply a hotfix or change registry values.</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.</p>
<p>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>The result after changing registry values &amp; execute the query again:</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MSQueryAlias/step2.PNG" alt="http://support.flexquarters.com/esupport/newimages/MSQueryAlias/step2.PNG" /></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Multiple tables exist error in the Linked Server]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2617]]></link>
<guid isPermaLink="false"><![CDATA[75e33da9b103b7b91dcd8da0abe1354b]]></guid>
<pubDate><![CDATA[Tue, 16 Dec 2014 10:24:56 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Multiple tables exist error in the Linked Server
Problem Description:
I am trying to run a query using an SQL Server database link to QuickBooks using QRemote. I can set up the linked server fine in SQL Server, and the connection has b...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Multiple tables exist error in the Linked Server</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">I am trying to run a query using an SQL Server database link to QuickBooks using QRemote. I can set up the linked server fine in SQL Server, and the connection has been tested to work. However, I try to run the query:<br /><br />SELECT * FROM QRemote...InvoiceLine<br /><br />The response is:<br /><br /> <strong>The OLE DB provider "MSDASQL" for linked server "QRemote" contains multiple tables that match the name "InvoiceLine."</strong><br /><br />I tried selecting through the&nbsp;<strong>QODBC Test Tool, which</strong>&nbsp;does not use the linked database. Please help as to where the issue might be.<br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> You have not configured the MSDASQL property for the linked server.<br /><br />The OLE DB provider options for managing linked queries can be set in SQL Server Management Studio.&nbsp;</span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleTables/step1.png" alt="http://support.flexquarters.com/esupport/newimages/MultipleTables/step1.png" width="289" height="165" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">In Object Explorer, right-click the provider name and select Properties for MSDASQL. The first six properties should be enabled. Please enable the first six properties.&nbsp;</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleTables/step2.png" alt="http://support.flexquarters.com/esupport/newimages/MultipleTables/step2.png" width="624" height="559" /><br /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;">For Multiple tables existing error, the "Level zero only" property should be set. &nbsp;&nbsp;</span><br /></span></p>
<div id="ginger-floatingG-container">&nbsp;</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - MS Access Crashes Hard On Date Query]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2616]]></link>
<guid isPermaLink="false"><![CDATA[a3d06db1f8c85b2837b4603a51834425]]></guid>
<pubDate><![CDATA[Tue, 16 Dec 2014 10:19:08 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - MS Access Crashes Hard On Date Query
Problem Description:
I've linked all the QODBC tables into an Access 2010 DB. I have created table subset queries on the original tables and would like to do selects based on date ranges - other thi...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - MS Access Crashes Hard On Date Query</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">I've linked all the QODBC tables into an Access 2010 DB. I have created table subset queries on the original tables and would like to do selects based on date ranges - other things, too, like JOINs - but I'm stuck with this problem. The minute I give Access a date constraint, like receive payment.TxnDate &gt;=#11/1/2014# as stated in your "How Dates Are Formatted.." documentation for Access Date formats, Access immediately crashes. No msgs in the brief QODBC log files about the crashes, as best I can tell:<br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Please try executing the following command using <strong>QODBC Test Tool</strong> to see if it can solve the issue: sp_optimizefullsync ALL.<br /><br />This command will bring some data to a local cache to increase query retrieval performance. I want to suggest that you please let me run the above command entirely. The above command may take some time, depending on your records in QuickBooks. It may take 2-24 hours or more, depending on the number of documents in the QuickBooks company file. Please let this command run entirely. Do not kill this command. It is not advisable to kill/close the application while building the Optimizer file. <br /><br />After successfully executing the above command, please create a new MS Access Database file &amp; link all tables &amp; execute the query again. It should work without any issues. <br /><br />Please refer to: <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2468/57/using-quickbooks-data-with-access-2010linked-tables-32-bit">How to Use QODBC with Microsoft Access 2010</a></span></p>
<div id="ginger-floatingG-container">&nbsp;</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting : MS Access as middleware is not working with MS SQL Server]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2609]]></link>
<guid isPermaLink="false"><![CDATA[339a18def9898dd60a634b2ad8fbbd58]]></guid>
<pubDate><![CDATA[Mon, 10 Nov 2014 14:51:06 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting: MS Access as middleware is not working with MS SQL Server
Problem Description:
 I am trying to use MS Access as a middleware with MS SQL Server. I have created an MS Access database &amp; linked all QODBC tables through QRemote DSN. Aft...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting: MS Access as middleware is not working with MS SQL Server</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I am trying to use MS Access as a middleware with MS SQL Server. I have created an MS Access database &amp; linked all QODBC tables through QRemote DSN. After that, I created MS Access DSN, which points to the newly created database. After that, I created the linked server pointing to MS Access DSN. The linked server is created, but when I run the query on the linked server, I get the below error:&nbsp;<br /></span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/middlewarenotworking/step1.png" alt="http://support.flexquarters.com/esupport/newimages/middlewarenotworking/step1.png" width="1078" height="658" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Please help me to resolve this error.<br /><br /> </span></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">This error is not related to QODBC. You are facing this issue because MS SQL Server is logged on as a&nbsp;<strong>"Network Service."</strong><br /><br />You need to change this setting to <strong>"Local System."</strong><br /><br />You can change it by below steps:<br /><br />Start &gt;&gt; Run &gt;&gt; type "services. msc" and click on "OK." <br /><br />Find SQL Server (MSSQLSERVER), Open SQL Server (MSSQLSERVER) by double clicking on it &amp; navigate log On tab &amp; choose log-on as <strong>"Local System Account,"</strong> and apply the changes by clicking on the ok button &amp; test again.<br /></span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/middlewarenotworking/step2.png" alt="http://support.flexquarters.com/esupport/newimages/middlewarenotworking/step2.png" width="416" height="480" /></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Wrong Data in Excel from QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2603]]></link>
<guid isPermaLink="false"><![CDATA[92f54963fc39a9d87c2253186808ea61]]></guid>
<pubDate><![CDATA[Mon, 10 Nov 2014 14:25:56 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Problem Description:
We modified an invoice in QuickBooks and are trying to get the data out in Excel, but QODBC gives us the old data. Why?
Solutions:
QODBC failure to return full records is usually caused by corruption of the&nbsp;QODBC optimizer fil...]]></description>
<content:encoded><![CDATA[<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">We modified an invoice in QuickBooks and are trying to get the data out in Excel, but QODBC gives us the old data. <br /><br />Why?</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">QODBC failure to return full records is usually caused by corruption of the&nbsp;<span id="afc9105e-b5c9-4ca5-8a20-323839c36455" class="GINGER_SOFTWARE_mark">QODBC optimizer file</span>. I want to inform you that the Optimizer file may be corrupted if you are killing the&nbsp;<span id="33e92343-1a89-41c4-bf83-a8c75d2446fe" class="GINGER_SOFTWARE_mark">process</span> or query while the optimizer file is <span id="5139c00c-610c-4331-9241-7fddb530bdcf" class="GINGER_SOFTWARE_mark">building</span>. It is not advisable to kill a query while it is in execution. <br /><br />Please reset the optimizer to solve the problem.<br /><br />1) Close all other applications that use QODBC.<br /><br />2) Turn off the QODBC optimizer (QODBC Setup Screen-&gt;" Optimizer" tab-&gt;Uncheck "Use optimizer" option)<br /><br />3) Find the file with<span id="be43cfbb-c3a6-45ba-97d6-841c2879f68c" class="GINGER_SOFTWARE_mark">&nbsp;the .</span><span id="7ff030ad-9ec4-4999-8cc8-0c987e2deca0" class="GINGER_SOFTWARE_mark">opt</span> extension <span id="0cbc797a-f188-447a-956e-2d7a095cc5e5" class="GINGER_SOFTWARE_mark">at</span> the path you had assigned to the QODBC optimizer and delete the <span id="c6eadbb7-998f-41ca-98dc-8906c3333b94" class="GINGER_SOFTWARE_mark">optimizer</span> file.<br /><br />(The default path is %AppData%\QODBC Driver for QuickBooks\Optimizer)<br /><br />You can find the&nbsp;<span id="1a4c002c-5d3d-44bc-8f1b-530a9f347d1d" class="GINGER_SOFTWARE_mark">optimizer folder path</span> from QODBC Setup Screen-&gt;" Optimizer" tab. Please copy this path &amp; navigate to this path &amp; delete<span id="fd6757f3-f461-4b76-9c2b-eb3d49c4951d" class="GINGER_SOFTWARE_mark">&nbsp;the .</span><span id="860060a0-cca9-497e-abae-086cfd356e33" class="GINGER_SOFTWARE_mark">opt</span> file.<br /><br />Or<br /><br />You can directly delete<span id="17e5e4b0-8045-4caa-a471-f68733f0f132" class="GINGER_SOFTWARE_mark">&nbsp;the .</span><span id="450538f3-874a-4e73-abb5-562de48b84e6" class="GINGER_SOFTWARE_mark">opt</span> file from:<br /><br /> <span id="d2b3fc71-3491-45e9-aa56-f27160b648ef" class="GINGER_SOFTWARE_mark">Start&gt;&gt;All</span> Programs&gt;&gt; QODBC Driver for use with QuickBooks&gt;&gt;QODBC Setup Screen&gt;&gt;" Optimizer" tab&gt;&gt;Click "<strong>Reset Optimizer File(s)</strong>."</span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/QXL-8004040a/step6.png" alt="" width="414" height="463" /><br />4) Turn on the QODBC optimizer (QODBC Setup Screen-&gt;" Optimizer" tab-&gt;Check "Use optimizer" option)<br /><br />5) After turning on the <span id="d6133c06-8de3-4f10-9e23-875e66984cee" class="GINGER_SOFTWARE_mark">optimizer</span>, please run the below command in <strong>QODBC Test Tool</strong>:<br /><br />sp_optimizefullsync All<br /><br />This command will bring some data to a local cache to increase query retrieval performance. I want to suggest you please let run the above command completely. The above command may take some time, depending on your QuickBooks records. It may take 2-24 hours or more, depending on the number of records in the QuickBooks company file. Please let this command run entirely. Do not kill this command. It is not advisable to kill/close the application while it's building the Optimizer file. <br /><br />6) Please test again to see if the problem is still there.<br /><br />7) After completing the above steps, please test data from <strong><span id="61ea53c3-2d3a-4570-bdd0-cad71769a062" class="GINGER_SOFTWARE_mark">QODBC Test Tool</span></strong>. If you can get updated data, then please refresh the Excel sheet so you can get <span id="25a4d8bf-749d-4bda-9688-0504444896ee" class="GINGER_SOFTWARE_mark">updated data</span>.<br /><br /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] How to add Additional quote (') in Insert statement using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2577]]></link>
<guid isPermaLink="false"><![CDATA[74934548253bcab8490ebd74afed7031]]></guid>
<pubDate><![CDATA[Tue, 05 Aug 2014 11:51:31 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[How to add a&nbsp;quote (') in the Insert statement using QODBC
Problem Description:
 I have exported the customer list from QB, and now I want to insert these using the insert query. But some of them fail because of the apostrophe (').How to deal with ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">How to add a&nbsp;<span id="5d38f4af-d1b6-4042-80c9-70af9d4bd348" class="GINGER_SOFTWARE_mark">quote</span> (') in the Insert statement using QODBC</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I have exported the customer list from QB, and now I want to insert these using the insert <span id="725b32af-27ac-4dce-b3e5-bd2e1fdb4929" class="GINGER_SOFTWARE_mark">query</span>. But some of them fail because of the <span id="24fd7b3e-4455-486b-8250-52c46b8c191e" class="GINGER_SOFTWARE_mark">apostrophe</span> (').<br />How to deal with special characters like this.</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I want to inform you that you can get an additional quote for your query.<br />For Example, if you want to add a customer whose name contains extra quotes, then you can insert the name using the following query:<br />Insert into customer (name) values ('Larry's Custom Invoice ')<br />The above question will create a customer entry named <strong>Larry's Custom Invoice</strong>. &nbsp; &nbsp; &nbsp; &nbsp;</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] How can I use same Excel files in 64 &amp; 32-bit Systems]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2566]]></link>
<guid isPermaLink="false"><![CDATA[42fe880812925e520249e808937738d2]]></guid>
<pubDate><![CDATA[Thu, 17 Apr 2014 16:41:18 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[How can I use the same Excel files in 64 &amp; 32-bit Systems
Problem Description:
 How can I use the same Excel files in 64 &amp; 32-bit Systems?
 Is it possible to have a connection set up in an Excel file and be able to refresh on either a64-bit4 or...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">How can I use the same Excel files in 64 &amp; 32-bit Systems</span></h2>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> How can I use the same Excel files in 64 &amp; 32-bit Systems?</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> Is it possible to have a connection set up in an Excel file and be able to refresh on either a64-bit4 or 32-bit system?</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> I know it's possible on the same (64 or 32) as long as the DSNs have the same names, but I wasn't sure about "crossing" between systems. </span></p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Yes, you can create a QRemote DSN with the same name on all the machines on which you would like to use Excel. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Your Excel file needs to use a common name DSN, for example, "QODBC-Excel." </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please refer to the example below: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">1) Machine A of a 64-bit OS has 64-bit Excel - create a DSN "QODBC-Excel" under 64-bit ODBC Administrator/Manager: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Start &gt;&gt; QODBC Driver for use with QuickBooks &gt;&gt; Configure QODBC Data Source 64-bit:</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step1-64.png" alt="" width="249" height="209" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Go to the "System DSN" Tab &gt;&gt; Click on the Add button to create a new DSN "QODBC-Excel." </span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step2.png" alt="" width="469" height="386" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Select the QRemote for QuickBooks option and click on the Finish button. </span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step3.png" alt="" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Configure the DSN, enter the name "QODBC-Excel," and provide the IP address and Port as listed under "QRemote Server."</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step4.png" alt="" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now we can see the newly created DSN "QODBC-Excel" in the System DSN list. </span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step5.png" alt="" width="464" height="388" /></div>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">2) Machine B of a 64-bit OS has 32-bit Excel - create a DSN "QODBC-Excel" under 32-bit ODBC Administrator/Manager: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Start &gt;&gt; QODBC Driver for use with QuickBooks &gt;&gt; Configure QODBC Data Source:</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step1.png" alt="" width="235" height="216" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Go to the "System DSN" Tab &gt;&gt; Click on the Add button to create a new DSN "QODBC-Excel."</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step2.png" alt="" width="469" height="386" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Select the QRemote for QuickBooks option and click on the Finish button. </span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step3.png" alt="" width="475" height="349" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Configure the DSN, enter the name "QODBC-Excel," and provide the IP address and Port as listed under "QRemote Server."</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step4.png" alt="" width="718" height="510" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now we can see the newly created DSN "QODBC-Excel" in the System DSN list. </span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step5-32.png" alt="" /></div>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">3) Machine C of 32-bit OS has 32-bit Excel - create a DSN "QODBC-Excel" under 32-bit ODBC Administrator/Manager: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Start &gt;&gt; QODBC Driver for use with QuickBooks &gt;&gt; Configure QODBC Data Source:</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step1.png" alt="" width="235" height="216" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Go to the "System DSN" Tab &gt;&gt; Click on the Add button to create a new DSN "QODBC-Excel."</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step2.png" alt="" width="469" height="386" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Select the QRemote for QuickBooks option and click on the Finish button. </span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step3.png" alt="" width="475" height="349" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Configure the DSN, enter the name "QODBC-Excel," and provide the IP address and Port as listed under "QRemote Server."</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step4.png" alt="" width="718" height="510" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now we can see the newly created DSN "QODBC-Excel" in the System DSN list. </span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step5-32.png" alt="" width="471" height="389" /></div>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now you can use the same Excel file on the above machine, whether machine 32 or 64-bit machine. Also, you can use the same Excel file on different architectures (i.e., you can use a 32-bit Excel file on 64-bit Excel and vice-versa) </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">To apply the newly created DSN to old Excel files.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Open the Excel file. Please go to the DataTab &amp; click on "Connections."</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step6.png" alt="" width="1133" height="569" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You can see existing connection details. Please click on "Properties."</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step7.png" alt="" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please select the connection name &amp; remove it.</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step8.png" alt="" width="418" height="503" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now manually write the newly created DSN name for this example, "QODBC-Excel," &amp; click "OK."</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step9.png" alt="" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now you can see updated connection details. Please click on "close."</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step10.png" alt="" width="575" height="395" /></div>
<p><span style="font-family: Arial,Helvetica,sans-serif;">By clicking on the "Refresh All" button, you will get updated data from the newly created DSN.</span></p>
<div><img style="border: 0px none; display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Excel3264/step11.png" alt="" width="1031" height="475" /></div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] QODBC shows Runtime Error R6025 pure virtual function call when using MS Access]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2565]]></link>
<guid isPermaLink="false"><![CDATA[e6acf4b0f69f6f6e60e9a815938aa1ff]]></guid>
<pubDate><![CDATA[Thu, 17 Apr 2014 14:51:29 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[QODBC shows Runtime Error R6025 pure virtual function call when using MS Access
Problem: 
I have created the link to the Customer table in MS Access using QODBC. I can link the table without any error, but when I try to edit any field from the linked ta...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">QODBC shows Runtime Error R6025 pure virtual function call when using MS Access</span></h2>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem: </span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I have created the link to the Customer table in MS Access using QODBC. I can link the table without any error, but when I try to edit any field from the linked table, I get the following error:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Microsoft Visual C++ Runtime Library<br />---------------------------<br />Runtime Error!<br /> <br />Program: C:\Program Files\Q...<br /> <br />R6025 <br />- pure virtual function call<br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/R6025/Step1.png" alt="" width="1311" height="614" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Sometimes I get a Runtime error &amp; sometimes the MS Access application crashes. Then MS Access closes and tries to restart.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/R6025/Step2.png" alt="" width="1346" height="628" /></span></p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solution: </span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">This issue only happens when using MS Access Linked Table &amp; tries to edit the first row.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please try to update other rows than the first row. It will not cause any error/crash. After updating other rows, it does not produce any error if you attempt to update the first row.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Also, please follow the steps below:<br /> <br />1) Close all the applications.<br />2) Delete the Optimizer file located at %AppData%\QODBC Driver for QuickBooks\Optimizer<br />3) Start your MS Access application, remove all the linked tables, and re-create it.<br />4) Test again.<br /></span></p>
<p>&nbsp;</p>
<p>Keywords:&nbsp;Runtime Error, MS Access Crash</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: ODBC call failed- Error 10004]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2530]]></link>
<guid isPermaLink="false"><![CDATA[55a988dfb00a914717b3000a3374694c]]></guid>
<pubDate><![CDATA[Thu, 26 Dec 2013 09:46:13 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Problem Description:
I am getting the error ODBC call failed- Error 10004 when trying to connect to QuickBooks through MS Access using QODBC.
Solution:
Please keep QuickBooks running, log in as Admin to your company file, Switch to single-user mode, an...]]></description>
<content:encoded><![CDATA[<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am getting the error <strong>ODBC call failed- Error 10004</strong> when trying to connect to QuickBooks through MS Access using QODBC.</span></p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solution:</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please keep QuickBooks running, log in as Admin to your company file, Switch to single-user mode, and try to connect again with your application.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Once you are connected, close your application. On QuickBooks, switch to multi-user mode and try<span style="font-family: Arial,Helvetica,sans-serif;"> to connect again with your application.</span></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Cannot connect to QuickBooks through SSIS using QODBC Error = 80040408, Could not start QuickBooks]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2527]]></link>
<guid isPermaLink="false"><![CDATA[ba3e9b6a519cfddc560b5d53210df1bd]]></guid>
<pubDate><![CDATA[Thu, 26 Dec 2013 09:23:03 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Problem Description:
I am trying to connect to QuickBooks through SSIS using QODBC, but I cannot connect to QuickBooks. 
I have a read-only desktop edition of QODBC, which is included with QuickBooks Enterprise Edition.
I am getting the error:&nbsp;"Er...]]></description>
<content:encoded><![CDATA[<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am trying to connect to QuickBooks through SSIS using QODBC, but I cannot connect to QuickBooks. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I have a read-only desktop edition of QODBC, which is included with QuickBooks Enterprise Edition.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am getting the error:&nbsp;</span><span style="font-family: Arial,Helvetica,sans-serif;">"Error = 80040408, Could not start QuickBooks."</span></p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solution:</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">QODBC included with QuickBooks Enterprise Edition is a read-only edition, which can only work with QuickBooks Enterprise when using the Desktop Base application.<br /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">But to work with SSIS, you need to either use QRemote or enable "DCOM Server" in QODBC.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">When you execute/set the SSIS package to run the scheduled job, it runs as a Service (SQL Server is a service-based application).</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">QODBC Server Edition License is required to work with a service-based application.<br /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please note:&nbsp; QODBC Read-Only Edition for QuickBooks Enterprise does not include a QRemote License. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;">"Could not start QuickBooks": Keep QuickBooks running&nbsp; ( No need to log in to the company file; keep the QuickBooks window open ) and try connecting.</span></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] I keep getting an error '[QODBC] Assignment Error' when I try to import entire tables into Excel? ]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2525]]></link>
<guid isPermaLink="false"><![CDATA[9407c826d8e3c07ad37cb2d13d1cb641]]></guid>
<pubDate><![CDATA[Fri, 13 Dec 2013 07:23:13 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Check if the table you are importing has any long fields and exclude them from the import. Some tables in QuickBooks have fields as long as 4095 characters and cannot fit in a single spreadsheet cell.
An excellent example of this is the InvoiceLine table...]]></description>
<content:encoded><![CDATA[<p>Check if the table you are importing has any long fields and exclude them from the import. Some tables in QuickBooks have fields as long as 4095 characters and cannot fit in a single spreadsheet cell.</p>
<p><br />An excellent example of this is the InvoiceLine table. If you run sp_columns InvoiceLine using QODBC Test Tool, you will see that the Memo and InvoiceLineGroupDesc columns can be up to 4095 characters long, so they can't be imported into Excel.</p>
<p><br /><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2525/Q1.png" alt="" /><br /><br />This means that a:&nbsp; "select * from InvoiceLine."<br /><br />It will not import. You must instead select all the columns of interest that you wish to use by doing something like the following:-<br /><br />SELECT InvoiceLine.TxnID, InvoiceLine.TimeCreated, InvoiceLine.TimeModified, InvoiceLine.EditSequence, InvoiceLine.TxnNumber, InvoiceLine.CustomerRefListID, InvoiceLine.CustomerRefFullName, InvoiceLine.ClassRefListID, InvoiceLine.ClassRefFullName, InvoiceLine.ARAccountRefListID, InvoiceLine.ARAccountRefFullName, InvoiceLine.TemplateRefListID, InvoiceLine.TemplateRefFullName, InvoiceLine.TxnDate, InvoiceLine.TxnDateMacro, InvoiceLine.RefNumber, InvoiceLine.BillAddressAddr1, InvoiceLine.BillAddressAddr2, InvoiceLine.BillAddressAddr3, InvoiceLine.BillAddressAddr4, InvoiceLine.BillAddressCity, InvoiceLine.BillAddressState, InvoiceLine.BillAddressPostalCode, InvoiceLine.BillAddressCountry, InvoiceLine.ShipAddressAddr1, InvoiceLine.ShipAddressAddr2, InvoiceLine.ShipAddressAddr3, InvoiceLine.ShipAddressAddr4, InvoiceLine.ShipAddressCity, InvoiceLine.ShipAddressState, InvoiceLine.ShipAddressPostalCode, InvoiceLine.ShipAddressCountry, InvoiceLine.IsPending, InvoiceLine.IsFinanceCharge, InvoiceLine.PONumber, InvoiceLine.TermsRefListID, InvoiceLine.TermsRefFullName, InvoiceLine.DueDate, InvoiceLine.SalesRepRefListID, InvoiceLine.SalesRepRefFullName, InvoiceLine.FOB, InvoiceLine.ShipDate, InvoiceLine.ShipMethodRefListID, InvoiceLine.ShipMethodRefFullName, InvoiceLine.Subtotal, InvoiceLine.ItemSalesTaxRefListID, InvoiceLine.ItemSalesTaxRefFullName, InvoiceLine.SalesTaxPercentage, InvoiceLine.SalesTaxTotal, InvoiceLine.AppliedAmount, InvoiceLine.BalanceRemaining, InvoiceLine.IsPaid, InvoiceLine.CustomerMsgRefListID, InvoiceLine.CustomerMsgRefFullName, InvoiceLine.IsToBePrinted, InvoiceLine.CustomerSalesTaxCodeRefListID, InvoiceLine.CustomerSalesTaxCodeRefFullName, InvoiceLine.SuggestedDiscountAmount, InvoiceLine.SuggestedDiscountDate, InvoiceLine.InvoiceLineType, InvoiceLine.InvoiceLineSeqNo, InvoiceLine.InvoiceLineGroupTxnLineID, InvoiceLine.InvoiceLineGroupItemGroupRefListID, InvoiceLine.InvoiceLineGroupItemGroupRefFullName, InvoiceLine.InvoiceLineGroupQuantity, InvoiceLine.InvoiceLineGroupIsPrintItemsInGroup, InvoiceLine.InvoiceLineGroupTotalAmount, InvoiceLine.InvoiceLineGroupSeqNo, InvoiceLine.InvoiceLineTxnLineID, InvoiceLine.InvoiceLineItemRefListID, InvoiceLine.InvoiceLineItemRefFullName, InvoiceLine.InvoiceLineDesc, InvoiceLine.InvoiceLineQuantity, InvoiceLine.InvoiceLineRate, InvoiceLine.InvoiceLineRatePercent, InvoiceLine.InvoiceLinePriceLevelRefListID, InvoiceLine.InvoiceLinePriceLevelRefFullName, InvoiceLine.InvoiceLineClassRefListID, InvoiceLine.InvoiceLineClassRefFullName, InvoiceLine.InvoiceLineAmount, InvoiceLine.InvoiceLineServiceDate, InvoiceLine.InvoiceLineSalesTaxCodeRefListID, InvoiceLine.InvoiceLineSalesTaxCodeRefFullName, InvoiceLine.InvoiceLineOverrideItemAccountRefListID, InvoiceLine.InvoiceLineOverrideItemAccountRefFullName, InvoiceLine.FQSaveToCache, InvoiceLine.FQPrimaryKey, InvoiceLine.CustomFieldInvoiceLineOther1, InvoiceLine.CustomFieldInvoiceLineOther2, InvoiceLine.CustomFieldInvoiceLineColor, InvoiceLine.CustomFieldInvoiceLineMaterial, InvoiceLine.CustomFieldInvoiceLineGroupOther1, InvoiceLine.CustomFieldInvoiceLineGroupOther2, InvoiceLine.CustomFieldInvoiceLineGroupColor, InvoiceLine.CustomFieldInvoiceLineGroupMaterial, InvoiceLine.CustomFieldInvoiceLineGroupLineOther1, InvoiceLine.CustomFieldInvoiceLineGroupLineOther2, InvoiceLine.CustomFieldInvoiceLineGroupLineColor, InvoiceLine.CustomFieldInvoiceLineGroupLineMaterial, InvoiceLine.CustomFieldOther, InvoiceLine.CustomFieldBDay, InvoiceLine.CustomFieldContract, InvoiceLine.CustomFieldSpousesName<br />FROM InvoiceLine InvoiceLine<br />WHERE (InvoiceLine.TxnDate&gt;{d '2024-01-01'})<br /><br />Note: CustomField names will vary depending on the names you give them in QuickBooks.<br /><br /><br />You can also control the length of the column returned by QODBC using the LEFT function, even in stored procedure reports.<br /><br />For example:<br /><br />An examination of the report InventoryValuationSummary shows that the RowData and RowDataType columns can return values as long as 4096 characters:</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2525/Q2.png" alt="" /><br />Using the LEFT function, I can extract the first 30 characters of the RowData and RowDataType columns only:<br /><br />sp_report InventoryValuationSummary show ItemDesc, QuantityOnHand, RowType,<br />{fn LEFT("RowData", 30)} AS "Row Data", {fn LEFT("RowDataType", 30)} AS "Row Data Type"<br />parameters DateFrom = {d '2024-11-19'}, DateTo = {d '2024-11-19'},<br />ItemFilterType = 'InventoryAndAssembly'</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2525/Q3.png" alt="" /></p>
<p>&nbsp;</p>
<p>Keywords:&nbsp;assignment error</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to Get Updated Custom Field with MS-Access (Linked Table)]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2521]]></link>
<guid isPermaLink="false"><![CDATA[4a1590df1d5968d41b855005bb8b67bf]]></guid>
<pubDate><![CDATA[Mon, 25 Nov 2013 10:31:29 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ How to Get an Updated Custom Field with MS-Access (Linked Table)
In QuickBooks
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; New Custom Fields are created within QuickBooks. 
In MS Access
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Newly created Custom Fields are not visible. ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> How to Get an Updated Custom Field with MS-Access (Linked Table)</span></h2>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">In QuickBooks</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; New Custom Fields are created within QuickBooks. </span></p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">In MS Access<br /></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Newly created Custom Fields are not visible. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">&nbsp; &nbsp; &nbsp; &nbsp;The solution to this issue is to re-create the linked table.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Open MS Access Linked Table:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CustomFieldUpdate/step1.png" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Right-click on the <strong>On Your Linked Table(In This Example, We are Using the Customer Table):</strong> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Now, click on the Delete.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CustomFieldUpdate/step2.png" alt="" /></span></p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Now link the Same Table (In this example, it's the Customer Table). After linking the table, you will get the updated Custom Field.</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Please refer to the link below for How to Create a Linked Table in MS Access:</span></p>
<p><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2448/0/how-to-use-qodbc-with-microsoft-access-2007" target="_blank">How to Use QODBC with Microsoft Access 2007</a></p>
<p><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2468/57/using-quickbooks-data-with-access-2010linked-tables-32-bit" target="_blank">How to Use QODBC with Microsoft Access 2010</a></p>
<h3>&nbsp;</h3>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description 1:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am trying to use QODBC to read a vendor custom field named "Territory." From the&nbsp;<strong>QODBC Test Tool</strong>, running "sp_columns vendor" produces a list of column data, but my custom fields don't appear. <br /><br />I have already reset the server and the connection between QODBC &amp; QuickBooks. But still, I am unable to get the Custom Field.</span>&nbsp;</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description 2:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">We are looking for the data in QuickBooks Enterprise Edition. v16 via QODBC (Linked Server) SQL Server with no luck: <br />We can not find data in the CustomField table, although we have many created.</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;">You can find CustomField in the table that you have assigned it. to<br /><br />For example, if you have assigned a CustomField in the Customer, Vendor, or Employee table, you can find it from Customer, Vendor, or Employee. If you have assigned a CustomField in transaction entities like (Invoice, Bill), then you can find it from Invoice, InvoiceLine, Bill, BillItemLine, and BillExpenseLine tables. <br /><br />Please Note: You need to disconnect the connection between QODBC &amp; QuickBooks and Reconnect to get the Custom Field. Custom Field will display in QODBC after resetting the connection.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Usually, you can get Custom Fields using QODBC by resetting the connection between QODBC &amp; QuickBooks. The Custom Field will display in QODBC after disconnecting all the links and connecting again.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">If you are still not getting the Custom Field even after all the connections between QODBC &amp; QuickBooks are disconnected, restart the Machine. So you need to reset Custom Fields from the QuickBooks UI.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> You need to remove each custom field's name, uncheck where used, and then reapply the information and test again. </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: The &quot;pure virtual function call&quot; Error when using QODBC with MS Excel or Access ]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2422]]></link>
<guid isPermaLink="false"><![CDATA[be1df9a5d08724971f64a511e24fc904]]></guid>
<pubDate><![CDATA[Tue, 07 Feb 2012 02:51:26 +0000]]></pubDate>
<dc:creator><![CDATA[Wilson (QODBC Support)]]></dc:creator>
<description><![CDATA[Pure Virtual Function Call Error
Troubleshooting: The "pure virtual function call" Error when using QODBC with MS Excel or Access 
Problem Description
When using QODBC with MS Excel or Access, QODBC throws the error "Pure virtual function call" when co...]]></description>
<content:encoded><![CDATA[<p>Pure Virtual Function Call Error</p>
<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting: The "pure virtual function call" Error when using QODBC with MS Excel or Access </span></h2>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">When using QODBC with MS Excel or Access, QODBC throws the error "Pure virtual function call" when connecting to Quick Books. It is noticed that sometimes the connection can be built without the problem, but when executing the "Refresh" command multiple times, this error comes again.</span></p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">This issue was noticed in QODBC Version 280 to 286 and was reported as a bug. We have fixed this issue in QODBC 287 and later versions. You could upgrade your QODBC to fix the problem. Here is the download link to the latest QODBC version: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><a href="http://www.qodbc.com/qodbcDownload.htm">http://www.qodbc.com/qodbcDownload.htm </a></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Severe delay between connection creation and command execution in VB Code]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2402]]></link>
<guid isPermaLink="false"><![CDATA[4dd9cec1c21bc54eecb53786a2c5fa09]]></guid>
<pubDate><![CDATA[Wed, 20 Oct 2010 08:48:58 +0000]]></pubDate>
<dc:creator><![CDATA[Juliet]]></dc:creator>
<description><![CDATA[Troubleshooting: Severe delay between connection creation and command execution in VB Code
Problem Description 
Below is a simple application running a QODBC stored procedure and dumping the results into a .NET DataSet. The command line app below seems ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting: Severe delay between connection creation and command execution in VB Code</span></h2>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description </span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Below is a simple application running a QODBC stored procedure and dumping the results into a .NET DataSet. The command line app below seems to freeze for approximately 6 minutes before completing successfully (regardless of whether QuickBooks is running or not). </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Module Module1 <br /> <br />Public Sub Main() <br /> <br />Dim strQB, strQBPath As String <br />Dim conQB As New System.Data.Odbc.OdbcConnection <br /> <br />If Environment.GetCommandLineArgs.Length = 2 Then <br /> <br />strQBPath = "Q:\corporate\test.qbw" <br /> <br />'************************************************************** <br />'* QuickBooks Database Connection <br />'************************************************************** <br />conQB.ConnectionString = "Driver={QODBC Driver for QuickBooks};DFQ=" &amp; strQBPath &amp; ";OpenMode=F;OLE DB Services=- <br /> <br />2;OptimizerOn=No;" <br /> <br />conQB.Open() <br /> <br />strQB = "sp_report CustomTxnDetail show Date, AccountNumber, Account, AccountType, Amount, Class parameters DateFrom <br /> <br />= {d'2010-07-01'}, DateTo = {d'2010-07-31'}, SummarizeRowsBy = 'TotalOnly'" <br /> <br />Dim da As New System.Data.Odbc.OdbcDataAdapter(strQB, conQB) <br />Dim ds As New DataSet <br />da.Fill(ds, "Transaction") <br /> <br />conQB.Close() <br /> <br />End If <br /> <br />End Sub <br /> <br />End Module <br /> <br />In the SDK message file, we could see a 6-minute delay between "Connection opened by..." and "Opening the file..."</span></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solutions</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Add an attribute " &lt;MTAThread()&gt; _" before the main code as follows: <br />And please see the link for more: http://support.microsoft.com/kb/828988</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Module Module1<br />&lt;MTAThread()&gt; _<br />Public Sub Main()<br />Dim strQB, strQBPath As String<br />Dim conQB As New System.Data.Odbc.OdbcConnection<br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> 'If Environment.GetCommandLineArgs.Length = 2 Then</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> 'strQBPath = "Q:\corporate\test.qbw"<br />strQBPath = "C:\work\temp\QODBCQA\sample.qbw"<br />'**************************************************************<br />'* QuickBooks Database Connection<br />'**************************************************************<br />conQB.ConnectionString = "Driver={QODBC Driver for QuickBooks};DFQ=" &amp; strQBPath &amp; ";OpenMode=F;OLE DB Services=-2;OptimizerOn=No;"</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> conQB.Open()</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> strQB = "sp_report CustomTxnDetail show Date, AccountNumber, Account, AccountType, Amount, Class parameters DateFrom = {d'2010-07-01'}, DateTo = {d'2010-07-31'}, SummarizeRowsBy = 'TotalOnly'"</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> Dim da As New System.Data.Odbc.OdbcDataAdapter(strQB, conQB)<br />Dim ds As New DataSet<br />da.Fill(ds, "Transaction")</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> conQB.Close()</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> End Sub</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">End Module<br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Access 97 Crashes when using QODBC with it]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2393]]></link>
<guid isPermaLink="false"><![CDATA[52cf49fea5ff66588408852f65cf8272]]></guid>
<pubDate><![CDATA[Tue, 17 Aug 2010 06:53:40 +0000]]></pubDate>
<dc:creator><![CDATA[Juliet]]></dc:creator>
<description><![CDATA[Troubleshooting: Access 97 Crashes when using QODBC with it
Problem Description
When we try to link our Access 97 database to QuickBooks using QODBC v10, our Access database crashes with the typical "send error report" screen as below. The VBDEMO progra...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting: Access 97 Crashes when using QODBC with it</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">When we try to link our Access 97 database to QuickBooks using QODBC v10, our Access database crashes with the typical "send error report" screen as below. The VBDEMO program works without any problem. </span></p>
<p align="center"><img src="//support.flexquarters.com/esupport/newimages/Access 97-1.jpg" alt="Access 97-1.jpg" border="0" />&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">This Access 97 crash problem was a known bug that has been fixed in QODBC V271.&nbsp;</span>Please update your QODBC to the latest QODBC version and test again.</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please <a href="http://www.qodbc.com/qodbcDownload.htm" target="_blank">click here</a> to download the latest version of QODBC.<br /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">If you are still getting the same error after updating the version, then I kindly request you to please raise a support ticket to the QODBC Technical Support department by clicking <a href="http://support.flexquarters.com/esupport/index.php?/Tickets/Submit" target="_blank">here</a><br /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Microsoft Office Access has encountered a problem and needs to close Error When Linking Tables]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/1723]]></link>
<guid isPermaLink="false"><![CDATA[8725fb777f25776ffa9076e44fcfd776]]></guid>
<pubDate><![CDATA[Thu, 12 Mar 2009 17:21:52 +0000]]></pubDate>
<dc:creator><![CDATA[brad waddell]]></dc:creator>
<description><![CDATA[Troubleshooting: Microsoft Office Access has encountered a problem and needs to close Error When Linking Tables
Problem Description 
 Several times (but not every time) when I try to add a new linked table in my Access 2003 database via New &gt; Linked ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;"><strong>Troubleshooting: Microsoft Office Access has encountered a problem and needs to close Error When Linking Tables</strong></span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description </span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> Several times (but not every time) when I try to add a new linked table in my Access 2003 database via New &gt; Linked Table &gt; ODBC Databases &gt; Machine Data Source &gt; QuickBooks Data &gt; Terms ... I get the "Microsoft Office Access has encountered a problem and needs to close. We are sorry for the inconvenience." dialog box. The table has not been linked when I return to Access. </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">This happens every time I complete the process of certifying linking in QuickBooks and unpredictably after successfully linking other tables. It also happens when I refresh the links in Linked Table Manager.</span></p>
<p><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;"><strong>Solutions</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">When using MS Access 2003, if you receive an error message that is similar to the following:</span></p>
<p><span style="color: #0000ff; font-family: Arial, Helvetica, sans-serif;">Microsoft Office Access has encountered a problem and needs to close. We are sorry for the inconvenience. To see what data this error report contains, click here.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">And when you view the data in the error report, the report contains an error signature that is similar to one of the following error signatures:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><strong>Application name</strong> <strong>&nbsp;&nbsp;&nbsp;&nbsp; Application version</strong> <strong>&nbsp;&nbsp;&nbsp; Module name</strong> <strong>&nbsp;&nbsp;&nbsp; Module version</strong> <strong>&nbsp;&nbsp;&nbsp; Offset</strong> </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Msaccess.exe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.0.6355.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Msaccess.exe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.0.6355.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0001af50 </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Msaccess.exe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.0.5614.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Msaccess.exe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.0.5614.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 003ccf2e </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Msaccess.exe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.0.5614.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Msaccess.exe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.0.5614.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00032c94 </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Msaccess.exe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.0.5614.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Msaccess.exe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.0.5614.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0002cd0d </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Msaccess.exe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.0.6255.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Oleaut32.dll &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5.1.2600.2118 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00008b10 </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Msaccess.exe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.0.5614.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Msaccess.exe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.0.5614.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0001af37 </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Msaccess.exe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11.0.6355.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Owc10.dll &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.0.6712.0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0020eb79 </span></p>
<p>you need to download and apply the Office 2003 Service Pack 2 found at: <a href="http://support.microsoft.com/kb/906460/" target="_blank">http://support.microsoft.com/kb/906460/</a></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Speed issue when resolved Data provider or other service returned an E_FAIL status error]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/1578]]></link>
<guid isPermaLink="false"><![CDATA[95d309f0b035d97f69902e7972c2b2e6]]></guid>
<pubDate><![CDATA[Thu, 12 Mar 2009 17:21:52 +0000]]></pubDate>
<dc:creator><![CDATA[brad waddell]]></dc:creator>
<description><![CDATA[Troubleshooting: Speed issue when resolved Data provider or other service returned an E_FAIL status error 
Problem Description 1
&nbsp;&nbsp;&nbsp;&nbsp; We are using QuickBooks Enterprise Canadian Edition 2004 and QODBC Version 6.0.0.150. When we used ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting: Speed issue when resolved Data provider or other service returned an E_FAIL status error </span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description 1</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; We are using QuickBooks Enterprise Canadian Edition 2004 and QODBC Version 6.0.0.150. When we used Sample Company provided along with QuickBooks Canadian Edition, i.e., "sample.qbw," we faced an error "Data provider or other service returned an E_FAIL status" with invoice Table. We found that the error occurred when we used either the "RecordCount" Property or the&nbsp; "MoveNext" method of the ADODB Recordset class object.</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions 1 </span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; The solution to this error is to set the "CursorLocation" property of the ADODB RecordSet class object as "adUse Serve.". </span></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description 2 </span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; But with this solution, we are now facing a speed issue. We have experienced the speed issue when we use the "MoveNext" method of the ADODB Recordset class object. The program runs very slowly. We are facing speed issues with this sample company,y "sample.qbw," and those databases which never produced a such error, r, i.e., "Data provider or other service returned an E_FAIL statu.". Those databases are used with QuickBooks as well as AUS Edition.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; We would like to know whether there is any way to get over this speed issue. Also, we would appreciate it if you could please let us know when this "Data provider or other service returned an E_FAIL status" error will resolve so that we do not need to set the "CursorLocation" property of the ADODB RecordSet class objects as "adUse Server" and also do not experience the speed issue.</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions 2 </span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Regarding cursors, the correct approach when using QODBC is only to use static or forward-only type cursors. For example:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">----------------<br /> <br />Const adOpenStatic = 3<br />Const adLockOptimistic = 3<br /> <br />Dim oConnection<br />Dim oRecordset<br />Dim sMsg<br />Dim sConnectString<br />Dim sSQL<br /> <br />'connect to the QuickBooks database, using connection defined on this machine<br />sConnectString = "DSN=QuickBooks Data;OLE DB Services=-2;"<br /> <br />sSQL = "SELECT ListID,FullName FROM Item"<br />Set oConnection = CreateObject("ADODB.Connection")<br />Set oRecordset = CreateObject("ADODB.Recordset")<br /> <br />oConnection.Open sConnectString<br />oRecordset.Open sSQL, oConnection, adOpenStatic, adLockOptimistic<br />Do While (not oRecordset.EOF)<br />sMsg2 = oRecordSet.Fields("ListID") &amp; " --- " &amp; oRecordSet.Fields("FullName")<br />objTextFile.WriteLine(sMsg2)<br />oRecordset.MoveNext<br />Loop<br /> <br />oRecordset.Close<br />Set oRecordset = Nothing<br />oConnection.Close<br />Set oConnection = Nothing<br />Set objFSO = Nothing<br /> <br />-----------------------</span></p>
<p><strong>Note</strong>: We have now corrected the issues with Pass-Through SQL and ADO keyset cursors and increased ADO's speed simultaneously. Please try the latest version of QODBC for testing.</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Too Many Indexes Error]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/1224]]></link>
<guid isPermaLink="false"><![CDATA[68d13cf26c4b4f4f932e3eff990093ba]]></guid>
<pubDate><![CDATA[Thu, 12 Mar 2009 17:21:52 +0000]]></pubDate>
<dc:creator><![CDATA[brad waddell]]></dc:creator>
<description><![CDATA[Troubleshooting: Too Many Indexes Error 
Problem Description 1
&nbsp;&nbsp;&nbsp;&nbsp; I just purchased QODBC Desktop Driver for QuickBooks USA 2008 Read Only. I am running QuickBooks 2006 - the 5-user version where the QB file is on a server. I instal...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting: Too Many Indexes Error </span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description 1</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; I just purchased QODBC Desktop Driver for QuickBooks USA 2008 Read Only. I am running QuickBooks 2006 - the 5-user version where the QB file is on a server. I installed QODBC and can connect to most of the tables just fine via ODBC and MS Access 2003. Some tables give me an error when linking to them in Access. For example, the table InvoiceLine gives me the error: "The Operation Failed. There are too many indexes in the table 'tmp%#MAU@.' Delete some of the indexes on the table and try the operation again."</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions 1 </span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> &nbsp;&nbsp;&nbsp;&nbsp; This is a confirmed bug using QODBC v8.00.00.234 and MS Access 2003 or 2007. We are investigating the issue and will advise a workaround or a fix shortly here. When using QuickBooks 2007, these tables have too many optimized indexes:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">CreditMemoLine<br />CreditMemoLinkedTxn<br />EstimateLine<br />InvoiceLine<br />InvoiceLinkedTxn<br />PurchaseOrderLine<br />Sales<br />SalesLine<br />SalesOrderLine<br />SalesOrderLinkedTxn<br />SalesReceiptLine</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><strong>Note</strong>: This issue has been fixed now. Please try to download our latest version of QODBC.</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] QB Multi-Line description fields not displayed properly in MS Access reports]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/796]]></link>
<guid isPermaLink="false"><![CDATA[35cf8659cfcb13224cbd47863a34fc58]]></guid>
<pubDate><![CDATA[Thu, 12 Mar 2009 17:21:52 +0000]]></pubDate>
<dc:creator><![CDATA[brad waddell]]></dc:creator>
<description><![CDATA[Troubleshooting: QB Multi-Line description fields are not displayed properly in MS Access reports
Problem Description 1 
&nbsp;&nbsp;&nbsp;&nbsp; I have found that the text I received from QODBC for multi-line fields (e.g., the item purchase or sales de...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting: QB Multi-Line description fields are not displayed properly in MS Access reports</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description 1 </span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; I have found that the text I received from QODBC for multi-line fields (e.g., the item purchase or sales description) uses only 0x0A line feeds rather than 0x0D. Carriage Return &amp; 0x0A Linefeed pairs. As a result, these multiline values are not displayed correctly in MS Access. </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; I have checked QB by selecting the text in such a multiline field and pasting it into a hex editor, and there it has the preferred 0x0D and 0x0A pairs, but I do not know if QB stores the underlying data like that. It would appear that QODBC presents the data like this. </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Does anyone know if there are any settings in either QuickBooks, QODBC, or MS Access that allow me to configure things so that my MS Access reports display correctly and easily?</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions 1 </span></h3>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Report Displaying</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; I am kind of inclined to have you check what was "embedded" in your long description text in the first place. I just ran up a report based on the data I tested with the forum post: <a href="http://archive.qodbc.com/foruma908.html?homeinclude=topicdetails&amp;forum_id=1&amp;category_id=11&amp;post_id=494" target="_blank">Incomplete Data returned</a>, and everything appeared as expected for me:</span></p>
<p align="center"><span style="font-family: Arial, Helvetica, sans-serif;"><img src="oneadmin/_files/Image/Screen%20Dump%20Upload%20Folder/SalesOrderLineLongDescReport.JPG" alt="" /></span></p>
<p align="left"><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Pass-Through Query </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; I used this pass-through query for my report:<br /> <br />SELECT SalesOrderLine.TxnID, SalesOrderLine.TxnNumber, SalesOrderLine.CustomerRefListID, SalesOrderLine.CustomerRefFullName, SalesOrderLine.SalesOrderLineItemRefFullName, SalesOrderLine.SalesOrderLineDesc<br />FROM SalesOrderLine SalesOrderLine</span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Created Form</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; When using an MS Access pass-through query, a form created using the pass-through query also displays the very long Service Item correctly... but it doesn't show the embedded carriage return/line feed seen in the report above.</span></p>
<p align="center"><span style="font-family: Arial, Helvetica, sans-serif;"><img src="oneadmin/_files/Image/Screen%20Dump%20Upload%20Folder/salesorderlong1(1).jpg" alt="" /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Most of us prefer our long text to word wrap the container or column width that we display the descriptions in.</span></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description 2 </span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; My description text isn't long so much, but it has multiple lines to help with purchasing. For example,</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">"Lock &amp; Key Set Comprising:<br />1x 70-108LG - Abloy Kit CL108N-LH KD<br />2x 70-PROTEC - Abloy Disklock Pro Cut Keys<br />Numbered sequentially from last order."</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; I would like to be able to show this text as per above, but with my MS Access report it shows as follows: </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">"Lock &amp; Key Set Comprising:_1x 70-108LG - Abloy Kit CL108N-LH KD_2x 70-PROTEC - Abloy Disklock Pro Cut Keys_Numbered sequentially from last order." (where the '_' are shown as a square.)</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Your example appears to suffer the same problem in that the CR is lost in QOBDC. </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Possible Solution 2 </span></h3>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>VB Replace Function </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; I have fixed the problem by calling the VB to replace the function within the SQL statement, as shown below.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> DoCmd.RunSQL _<br />"INSERT INTO Local_ItemInventory ( Part, Description, QuantityOnHand ) " &amp; _<br />"SELECT Name, replace(PurchaseDesc,chr(10),chr(13) &amp; chr(10)), QuantityOnHand " &amp; _<br />"FROM ItemInventory " &amp; _<br />"WHERE IsActive=Yes"</span></p>
<p><span style="color: #990000;"><strong><span style="font-family: Arial, Helvetica, sans-serif;">REPLACE Function Supported by QODBC </span></strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Just so other developers know, QODBC does support the REPLACE function directly too:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">{fn replace(sql_string_to_search, sql_string_to_find, sql_string_to_replace_with)}</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; For example:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">SELECT Name, {fn REPLACE("Name", 'i', 'xxxxxx')} AS "Replaced" FROM Customer</span></p>
<p align="center"><span style="font-family: Arial, Helvetica, sans-serif;"><img src="oneadmin/_files/Image/Screen%20Dump%20Upload%20Folder/replace.JPG" alt="" /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] QODBC query very slow in MS Access]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/323]]></link>
<guid isPermaLink="false"><![CDATA[bc6dc48b743dc5d013b1abaebd2faed2]]></guid>
<pubDate><![CDATA[Thu, 12 Mar 2009 17:21:52 +0000]]></pubDate>
<dc:creator><![CDATA[brad waddell]]></dc:creator>
<description><![CDATA[Troubleshooting: QODBC query is very slow in MS Access
Problem Description 
The optimization does not seem to matter. When trying to open a table in&nbsp;QODBC Support Wizard, it will open one with less than 1000 records, but it takes 2 to 3 minutes. Wh...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting: QODBC query is very slow in MS Access</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description </span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">The optimization does not seem to matter. When trying to open a table in&nbsp;<a href="https://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2981" target="_blank">QODBC Support Wizard</a>, it will open one with less than 1000 records, but it takes 2 to 3 minutes. When trying to open a larger table or using it with MS Access, it sits with the icon in the taskbar saying "Waiting on QuickBooks. " Record 0 of 0, and QuickBooks also freezes up, or the performance is prolonged. </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions</span></h3>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Supported Version and Proper Optimizer Setup When Using QODBC with MS Access</strong></span></p>
<p><span style="color: #000000; font-family: Arial, Helvetica, sans-serif;">For MS Access 2003, 2007, 2010, 2013,&nbsp; 2016, or 365 to work correctly, you must first check that you are running&nbsp;the latest version of QODBC&nbsp;and then change your optimization settings to use the "The start of every new connection (with "Load Updated Data" first) " option and confirm that the "Multi-Table Sync" option has been disabled. If not, uncheck the Multi-Table Sync option, which&nbsp;is often defaulted on (checked) with QuickBooks Enterprise and the QODBC Enterprise Desktop Edition. </span></p>
<p align="center"><span style="font-family: Arial, Helvetica, sans-serif;"><img src="https://support.flexquarters.com/esupport/newimages/323/OptimizerConfiguration.png" alt="" /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Once this has been done, <span style="color: #000000;">unlink all the QODBC tables in your existing MS Access .mdb</span></span><span style="color: #000000; font-family: Arial, Helvetica, sans-serif;">(s)</span> <span style="font-family: Arial, Helvetica, sans-serif;">and relink them to use these new connection settings.</span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Optimizer Relative Solution</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">The QODBC Optimizer mirrors the QuickBooks tables into an SQLite engine. This SQLite engine is single-user only, so each user and workstation must have its own .opt file. When QODBC is installed, it will automatically optimize&nbsp;each table as you use it. You must allow QODBC to finish this initial optimization process. After that, updates are much faster.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Please see the link below for more about the QODBC optimizer:</span></p>
<p><a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2358" target="_blank"><span style="font-family: Arial, Helvetica, sans-serif;">How to setup QODBC Optimizer, and where are the Optimizer options</span></a></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Re-configuring the optimizer setup is also suggested. See also&nbsp;</span><span style="font-family: Arial, Helvetica, sans-serif;"><a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2357" target="_blank">How to switch OFF or RESET the QODBC Optimizer</a> to reset the optimizer as a try.</span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Selecting Specified Data, It is also suggested that you stop&nbsp;</strong></span><span style="box-sizing: border-box; margin: 0px; padding: 0px;"><strong><span style="color:#990000">using</span></strong></span><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;SELECT * from TableName and use MS Access datasheet. Get ONLY the data you need; for example, do not enter every invoice in QuickBooks; see&nbsp;</span><a style="font-family: Arial, Helvetica, sans-serif;" href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/1225">How to Use Prompted Date Ranges in MS Access</a><span style="font-family: Arial, Helvetica, sans-serif;">.</span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Optimizer File Transfer </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">You can copy the opt file, providing these conditions are met:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">1) The workstations must have the exact date and time.<br />2) The company file must be the same on a networked server.<br />3) There is&nbsp;no active QODBC connection&nbsp;to QODBC and QuickBooks.<br />4) The QODBC optimizer settings are the same.</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Slow Performance with Excel MS Query]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/87]]></link>
<guid isPermaLink="false"><![CDATA[c7e1249ffc03eb9ded908c236bd1996d]]></guid>
<pubDate><![CDATA[Thu, 12 Mar 2009 17:21:52 +0000]]></pubDate>
<dc:creator><![CDATA[brad waddell]]></dc:creator>
<description><![CDATA[Troubleshooting: Slow Performance with Excel MS Query
Problem Description
I am experiencing a huge delay when running a Query in the Excel MS Query versus running the same script in QODBC Support Wizard. QODBC Support Wizard will return the data in 2 se...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting: Slow Performance with Excel MS Query</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;"><strong>Problem Description</strong></span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">I am experiencing a huge delay when running a Query in the Excel MS Query versus running the same script in <a href="https://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2981" target="_blank">QODBC Support Wizard</a>. QODBC Support Wizard will return the data in 2 seconds while running the query in MS Query running for over 10 minutes. I am running Optimizer. Is something not configured correctly?</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;"><strong>Solutions</strong></span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">MS Query builds queries a little bit differently than I would write them. Copy the SQL Statement from MS Query into QODBC Support Wizard and re-compare what's really going on. The actual query part should be the same, but passing data to Excel from MS Query would take additional time, depending on how much data is returned. </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">The best optimizer settings should be checking the "Optimize data after an Insert or Update" and "Dirty Reads" options. See also: <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2358" target="_blank">How to set up QODBC Optimizer and where are the Optimizer options</a> for more.</span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Keywords:&nbsp;qodbc and excel connection speed,&nbsp;multiple web queries into excel slow running</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
</channel>
</rss>