<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<title><![CDATA[FLEXquarters.com Limited]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/]]></link>
<description />
<generator><![CDATA[Kayako case v4.66.2]]></generator>
<item>
<title><![CDATA[[QODBC ALL] - How to increase the update or delete SQL statement performance.]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/3061]]></link>
<guid isPermaLink="false"><![CDATA[4aa0e93b918848be0b7728b4b1568d8a]]></guid>
<pubDate><![CDATA[Tue, 15 Nov 2022 10:27:30 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[[QODBC ALL] - How to increase the update or delete SQL statement performance.
Problem Description:
Ran this SQL to move an invoice from one Customer to another:Update invoice set CustomerRefListID&nbsp;= '1500' where TxnNumber = 8453It took about 15+ mi...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">[QODBC ALL] - How to increase the update or delete SQL statement performance.</span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>Ran this SQL to move an invoice from one Customer to another:<br /><br />Update invoice set CustomerRefListID&nbsp;= '1500' where TxnNumber = 8453<br /><br />It took about 15+ minutes, and the status dialog showed it waiting on QuickBooks as it went through all 2,500 customers - but it took over 15 minutes to complete! I have a situation where moving an invoice to another Customer may occur several times in a batch of invoices. Are there additional conditions I can put in the WHERE clause that would speed this up?</p>
<p>&nbsp;</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>Please make sure Optimizer is enabled.&nbsp; - <a href="https://qodbc.com/links/2358">https://qodbc.com/links/2358</a></p>
<p>If you are executing an SQL statement for the first time on this table, QODBC has built the optimizer before processing the SQL statement. "Waiting on QuickBooks" may take longer than usual.</p>
<p>Please run the SQL statement again, and if you are still facing the same issue, please try the following options.</p>
<p>&nbsp;</p>
<p>Make use of the index fields, such as TxnID or TxnDate, to filter the number of records scanned.</p>
<p>Update invoice set CustomerRefListID&nbsp;= '1500' where TxnID='ValueOfYourTxnID'</p>
<p>or</p>
<p>Update invoice set CustomerRefListID&nbsp;= '1500' where&nbsp;TxnDate&gt;={d'2022-11-10'} and&nbsp;&nbsp;TxnDate&lt;={d'2022-11-15'} and&nbsp;&nbsp;TxnNumber = 8453</p>
<p>&nbsp;</p>
<p>If you are still facing the issue, please try using the UNOPTIMIZED keyword.</p>
<p>Update invoice UNOPTIMIZED set CustomerRefListID&nbsp;= '1500' where&nbsp;TxnID='ValueOfYourTxnID'</p>
<p>&nbsp;</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>We have low performance in SQL Server Linked Server using QREMOTE.<br /><br />For example, the below statement takes less than 2 seconds in the QODBC 64-bit Test tool and more than 2 minutes in our linked server:<br />UPDATE Customer SET JobTitle = 'Job3' WHERE ListID='8000000F-1466614340'.<br /><br />In SQL Server, the statement seems to scan the whole table to be executed (14000 records)<br /><br />We are running QuickBooks and SQL Server on the same machine on a cloud server. All drivers are 64bits. The same system DSN is used in Test Tool and in SQL Linked server: QuickBooks Data 64-bit QRemote.</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>Please make sure Optimizer is enabled.&nbsp; - <a href="https://qodbc.com/links/2358">https://qodbc.com/links/2358</a></p>
<p>&nbsp;</p>
<p>Update QREMOTE...customer set JobTitle = 'Job' where ListID='8000000F-1466614340'</p>
<p>&nbsp;</p>
<p>When you use the above query, SQL Server will fetch all the data from the Customer table. SQL Server will then apply the filter of List ID.</p>
<p>SQL Server will generate an update statement from the derived result and send it to QODBC/QRemote.</p>
<p>Thus, for a single record update, the entire table is scanned.</p>
<p><br />To avoid this, use OpenQuery and select only the record you want to update.</p>
<p>Please use the Index fields in the "select" and "update" clauses.</p>
<p><br />Example:<br />update openquery (QRemote, 'select ListID, JobTitle from Customer where ListID=''8000000F-1466614340''') set JobTitle = 'Job' where ListID='8000000F-1466614340'</p>
<p>Note: Here, we are using ListID (the index field) in the select statement and the OpenQuery update statement.</p>
<p>&nbsp;</p>
<p>If you are still facing the issue, please use the UNOPTIMIZED keyword.</p>
<p>update openquery (QRemote, 'select ListID, JobTitle from Customer UNOPTIMIZED where ListID=''8000000F-1466614340''') set JobTitle = 'Job' where ListID='8000000F-1466614340'</p>
<p>&nbsp;</p>
<p>&nbsp;</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-ALL] Troubleshooting - Update from a select statement not working]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2818]]></link>
<guid isPermaLink="false"><![CDATA[d53697441ef12a45422f6660202f9840]]></guid>
<pubDate><![CDATA[Fri, 19 Aug 2016 13:02:28 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Update from a select statement not working 
Problem Description:
I am trying to update records through the select statement. But it is not working. UPDATE Customer SET CustomFieldProjectNumber = i.JobNumber FROM ( SELECT ListID, {fn S...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Update from a select statement not working </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am trying to update records through the select statement. But it is not working. <br /><br />UPDATE Customer SET CustomFieldProjectNumber = i.JobNumber FROM ( SELECT ListID, {fn SUBSTRING("Name", 1, 5)} AS JobNumber FROM Customer WHERE TimeCreated &gt; {ts '2016-01-01 00:00:00.000'} ) i WHERE i.ListID = Customer.ListID<br /><br />I am getting the "Unexpected extra token: (" error in QODBC Test Tool.&nbsp;</span>&nbsp;</p>
<p><img src="https://support.flexquarters.com/esupport/newimages/2818/Q1.png" alt="" /></p>
<p>Any Assistance Is Appreciated.</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;">You can execute the query below in MS Access linked table without any issue.<br /><br />Please refer to&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2470/57/using-quickbooks-data-with-access-2013-linked-tables-32-bit" target="_blank">How to Use QODBC with MS Access 2016 / 365 / 2013 32-bit </a></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You need to link the Customer table in MS Access &amp; execute the query in the Access query editor.<br /><br />MS Access&gt;&gt; create tab &gt;&gt; Query Design &gt;&gt; Paste query &gt;&gt; Execute query using Run button <br /><br />Update Customer qe inner join Customer de on qe.ListID = de.ListID set qe.CustomFieldProjectNumber = MID (de.Name,1,5) WHERE qe.TimeCreated &gt;#2016-01-01 00:00:01#<br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Getting incomplete data when running ProfitAndLossBudgetVsActual report]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2817]]></link>
<guid isPermaLink="false"><![CDATA[182e6c2d3d78eef40e5dac7da77a748f]]></guid>
<pubDate><![CDATA[Fri, 19 Aug 2016 12:58:21 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Getting incomplete data when running the ProfitAndLossBudgetVsActual report 
Problem Description:
Good Day To You. Using This Sp_report And Having Some Problems With The Column Layout. Command Text Is As Follows: Sp_report Profitandlo...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Getting incomplete data when running the ProfitAndLossBudgetVsActual report </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;">Good Day To You. Using This Sp_report And Having Some Problems With The Column Layout. Command Text Is As Follows: Sp_report Profitandlossbudgetvsactual Show Account name, Account number, Amount, Budget Parameters Fiscalyear=2015, Classfilterfullnames =' health Center,' 'administrative.' <br /><br />I'm Getting 12 Columns, As One Would Expect, But The 12th Column Is The Sum Of The Previous 11 Columns, Not The 12th Month. This Is True For Both The Amount And Budget Segments. Also, The Budget Amount For The 11th Month is exactly one-half of the Actual Budgeted Amount. I Have Run The Actual Report, And The Totals For Each Month Are Correct For Both the Amount And Budget Until The Last Two Months In The report. <br /><br />Also, if I replace the FiscalYear=2015, with DateMacro=&rsquo;ThisYear&rsquo; I get this<br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ProfitAndLossBudgetVsActual/step1.png" alt="" border="0" /> <br /><br />Any Assistance Is Appreciated.&nbsp;</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;">Please ensure that you are passing the same parameter in the report query you passed in QuickBooks UI.<br /><br />Also, for the budget report, the Fiscal Year parameter is required. Without it, a report will not execute. So you need to keep the Fiscal Year parameter &amp; add other date parameters. <br /><br />For Example:<br /><br />sp_report ProfitAndLossBudgetVsActual show Amount_Title, Budget_Title, Difference_Title, Percent_Title, Text, Label, Amount, Budget, Difference, Percent parameters FiscalYear = 2015, DateFrom={d'2015-10-01'}, DateTo={d'2016-09-30'}, BudgetCriterion = 'Accounts,' SummarizeBudgetColumnsBy = 'Date,' SummarizeBudgetRowsBy = 'Account' <br /><br /> </span></p>]]></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-Desktop] Troubleshooting - QODBC Record Set Issue]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2806]]></link>
<guid isPermaLink="false"><![CDATA[c0f971d8cd24364f2029fcb9ac7b71f5]]></guid>
<pubDate><![CDATA[Wed, 13 Jul 2016 15:10:57 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - QODBC Record Set Issue 
Problem Description:
I am using the code below. It is returning records &amp; giving me the correct result. But if I change the query from "SELECT Name FROM customer" to "SELECT * FROM customer," it does not re...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - QODBC Record Set Issue </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am using the code below. It is returning records &amp; giving me the correct result. But if I change the query from "SELECT Name FROM customer" to "SELECT * FROM customer," it does not return any records &amp; giving me the incorrect result. I am getting the following error:<br /><br />[QODBC] Internal error<br />440: BOF or EOF is True, or the current record has been deleted. The requested operation requires a current record.<br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/RecordSet/step1.png" alt="" border="0" /><br /><br /> <span style="font-family: Arial,Helvetica,sans-serif;"> Public Sub example select()<br />Const adOpenStatic = 3<br />Const adLockOptimistic = 3<br />Dim oConnection<br />Dim oRecordset<br />Dim sMsg<br />Dim sConnectString<br />Dim sSQL<br /> <br />sConnectString = "Driver={QODBC Driver for QuickBooks};DFQ=C:\QuickBooks\Maintenance.qbw;OpenMode=F;OLE DB Services=-2;"<br />sSQL = "SELECT Name FROM customer"<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 />sMsg = "**********************" &amp; Chr(100)<br />Do While (Not oRecordset.EOF)<br />sMsg = sMsg &amp; oRecordset.Fields("Name") &amp; Chr(100)<br />oRecordset.MoveNext<br />Loop<br />sMsg = sMsg &amp; "**********************"<br />MsgBox sMsg<br /> <br />oRecordset.Close<br />Set oRecordset = Nothing<br />oConnection.Close<br />Set oConnection = Nothing<br />End Sub</span></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;">To resolve the issue, you need to add the line below to your connection string.<br /><br />OptimizerAllowDirtyReads=N <br /><br />For Example: <br /><br />sConnectString = "Driver={QODBC Driver for QuickBooks};DFQ=C:\QuickBooks\Maintenance.qbw;OpenMode=F;OLE DB Services=-2;OptimizerAllowDirtyReads=N" <br /><br />After changing this, you can get the correct result.<br /><br /> </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-Desktop] Troubleshooting - How do I see backorder items that have been invoiced but not shipped]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2776]]></link>
<guid isPermaLink="false"><![CDATA[6244b2ba957c48bc64582cf2bcec3d04]]></guid>
<pubDate><![CDATA[Mon, 09 May 2016 10:04:05 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How do I see backorder items that have been invoiced but not shipped 
Problem Description:
Could someone kindly provide me with a sample, or is there a stored procedure that would allow me to only pull out back-ordered invoices from t...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How do I see backorder items that have been invoiced but not shipped </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;">Could someone kindly provide me with a sample, or is there a stored procedure that would allow me to only pull out back-ordered invoices from the invoice table? <br /><br />If a customer orders some items, we create an invoice. Then, if some things are back-ordered, when the packing slip is made, it shows they were not sent out, and that item is back-ordered. I was looking for a query or an SP that would lead me to only invoices that have not been completely shipped, or all the items in backorder.</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;">All you need to do is use the ItemInventory table to pick up the quantity on hand and compare it with the ordered quantity ordered and invoiced to date (invoiced or not), and call the column "Qty to Pick." <br /><br />Something along the lines of: <br /><br />SELECT SalesOrderLine.SalesOrderLIneItemRefFullName as Type, SalesOrderLine.TxnDate as Date, SalesOrderLine.DueDate, SalesOrderLine.RefNumber as Num, SalesOrderLine.CustomerRefFullName as Name, SalesOrderLine.SalesOrderLineQuantity as "Qty Ordered," SalesOrderLine.SalesOrderLineInvoiced as "Qty Invoiced," (SalesOrderLine.SalesOrderLineQuantity - SalesOrderLine.SalesOrderLineInvoiced) as "Qty to Pick," ItemInventory.QuantityOnHand as "Qty Available," ItemInventory.QuantityOnOrder as "Qty on Back Order" FROM SalesOrderLine, ItemInventory where SalesOrderLine.SalesOrderLineItemRefListID = ItemInventory.ListID and SalesOrderLine.IsFullyInvoiced = FALSE and SalesOrderLine.SalesOrderLineInvoiced &lt; SalesOrderLine.SalesOrderLineQuantity <br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/BOItem/step1.png" alt="" border="0" /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Trying to update ItemInventoryAssemblyLine table ]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2775]]></link>
<guid isPermaLink="false"><![CDATA[4a5876b450b45371f6cfe5047ac8cd45]]></guid>
<pubDate><![CDATA[Mon, 09 May 2016 09:59:14 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Trying to update the ItemInventoryAssemblyLine table 
Problem Description:
All our products are Inventory Assemblies. I am using MS Access connected to QuickBooks via QODBC. I am using queries in MS Access to load/synchronize Inventor...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Trying to update the ItemInventoryAssemblyLine table </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;">All our products are Inventory Assemblies. I am using MS Access connected to QuickBooks via QODBC. I am using queries in MS Access to load/synchronize Inventory data from my master inventory list, which is kept outside of QuickBooks, to make sure QuickBooks has the latest inventory data.<br /><br />I have successfully inserted ItemInventoryAssemblyLine entries, but now I'm trying to update the Quantity information on parts for existing assemblies. <br /><br />To do the update, I need to join a local table I've created from the external inventory data, which I've loaded with the ListID, ItemInventoryAssemblyLnItemInventoryRefListID, and FQPrimaryKey values from ItemInventoryAssemblyLine, in order to facilitate joins. <br /><br />Here's my SQL (from MS Access Query Designer): <br /><br />UPDATE ItemInventoryAssemblyLine INNER JOIN Assemblies_with_PK ON ItemInventoryAssemblyLine.FQPrimaryKey = Assemblies_with_PK.FQPrimaryKey SET ItemInventoryAssemblyLine.ItemInventoryAssemblyLnQuantity = [Qty]; <br /><br />"Qty" is a column in the local table with the updated Quantity that I'd like to edit into the QuickBooks table. <br /><br />When I run this query, I get the dreaded "Error parsing complete XML return string." error. I have tried alternatively joining on the combination of ListID and ItemInventoryAssemblyLnItemInventoryRefListID instead of FQPrimaryKey with the same result. <br /><br />I have updated Custom Fields in the parent ItemInventoryAssembly table using the same approach with no problems. <br /><br />Any help with this would be greatly appreciated!</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;">Please update your QODBC to the latest QODBC version and test again.<br /><br />Please click <a href="http://www.qodbc.com/qodbcDownload.htm" target="_blank">here</a> to get the latest QODBC version. <br /><br />If you are still getting the same error after updating the version, 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 /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How do I update Customer custom fields]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2769]]></link>
<guid isPermaLink="false"><![CDATA[44ac09ac6a149136a4102ee4b4103ae6]]></guid>
<pubDate><![CDATA[Mon, 11 Apr 2016 12:00:52 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How do I update Customer custom fields 
Problem Description:
How do I update Customer custom fields?&nbsp;
Solution:
You can update Customer custom fields using the update query.For Example: Update Customer Set CustomFieldContract='...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How do I update Customer custom fields </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;">How do I update Customer custom fields?</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 update Customer custom fields using the update query.<br /><br />For Example: <br />Update Customer Set CustomFieldContract='QODBCJOB1' where ListID='800000F2-1513344011' <br /> </span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CustomFieldCreate/step1.png" alt="" /></p>
<p><br />And there you have it! To check that everything worked, just do the following:<br />Select ListID, Name, FullName, CustomFieldContract from Customer where ListID='800000F2-1513344011' <br /><br /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CustomFieldCreate/step2.png" alt="" /></p>
<p><br />You can check it on QuickBooks, also. <br /><br /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CustomFieldCreate/step3.png" alt="" /></p>
<p><br />You can insert Custom fields during Customer creation also. Please refer to the sample query for the same.<br /><br />INSERT INTO "customer" ("Name," "LastName," "FirstName," "BillAddressAddr1", "BillAddressAddr2", "BillAddressCity," "BillAddressState," "BillAddressPostalcode," "CustomFieldBDay," "CustomFieldContract," "CustomFieldSpousesName") values('Juniga, Daphne,' 'Juniga,' 'Daphne,' 'Daphne Juniga,' '561 W 4th St.', 'Carlsbad,' 'CA,' '92009', '26/01/1987', 'QODBCJOB1', 'Jack') <br /><br /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CustomFieldCreate/step4.png" alt="" /></p>
<p><br />And there you have it! To check that everything worked, just do the following:<br />Select Name, CustomFieldBDay, CustomFieldContract, CustomFieldSpousesName from Customer where Name='Juniga, Daphne' <br /><br /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CustomFieldCreate/step5.png" alt="" /></p>
<p><br />You can check it on QuickBooks, also. <br /><br /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/CustomFieldCreate/step6.png" alt="" /></p>
<p>&nbsp;</p>
<p>&nbsp;</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] Troubleshooting - How do I remove subtotals and blank lines in sp_report]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2766]]></link>
<guid isPermaLink="false"><![CDATA[045cf83ab0722e782cf72d14e44adf98]]></guid>
<pubDate><![CDATA[Thu, 31 Mar 2016 07:38:09 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How do I remove subtotals and blank lines in sp_report 
Problem Description:
I'm trying to link a general ledger report in Excel. I've created the sp_report SQL query in Microsoft Query just fine, but the data it returns contains subt...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How do I remove subtotals and blank lines in sp_report </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'm trying to link a general ledger report in Excel. I've created the sp_report SQL query in Microsoft Query just fine, but the data it returns contains subtotals and blank lines. I know I can write a script/filter in Excel to eliminate these lines, but I can't figure out what parameters to use to do it 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/blank/step1.png" alt="" /><br /></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;">In QODBC, you can remove subtotals and blank lines in sp_report by adding the following condition. <br /><br /> <strong>where RowType='DataRow'</strong><br /><br /> For example:<br /><br /> sp_report ProfitAndLossDetail show TxnType, Date, RefNumber, Name, Memo, ClearedStatus, SplitAccount, Debit, Credit, RunningBalance parameters DateMacro = 'ThisYearToDate' where RowType='DataRow' <br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/blank/step2.png" alt="" /><br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Upgrading to QuickBooks and QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2765]]></link>
<guid isPermaLink="false"><![CDATA[370bfb31abd222b582245b977ea5f25a]]></guid>
<pubDate><![CDATA[Wed, 30 Mar 2016 14:12:01 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Upgrading to QuickBooks and QODBC 
Problem Description:
I have a custom program written in Access 2003 communicating with QuickBooks 2013 using QODBC 13, which works fine. Will upgrading to the latest QuickBooks and QODBC require any ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Upgrading to QuickBooks and 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 have a custom program written in Access 2003 communicating with QuickBooks 2013 using QODBC 13, which works fine. Will upgrading to the latest QuickBooks and QODBC require any code changes to the Access 2003 program? <br /> </span></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;">We are upgrading from QuickBooks Pro 2011 to QuickBooks Enterprise (the latest) and need a developer/consultant to assist in checking/upgrading queries and code to work with the new versions of QODBC/QuickBooks. Our company uses the QODBC Driver for QuickBooks to synchronize data between our Microsoft Access database and QuickBooks. We push customers, jobs, cheques, and items from Access to QuickBooks and pull data from QuickBooks to Access for reports.&nbsp;</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;"> It is unlikely that you will have a problem as QODBC is upward compatible with QuickBooks, so the same queries you have running now should continue to work. <br /><br /> Suggest you purchase the latest version of QODBC, which supports the newest version of QuickBooks, then run some tests. If you have any trouble with connections, please refer to the following:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2512" target="_blank">Connecting QODBC Driver to QuickBooks for the First Time (Video)</a><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2468" target="_blank">How to Use QODBC with Microsoft Access 2010 to Build Linked Table(32-Bit)</a><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2435" target="_blank">How to Configure QODBC to Work With 64-bit MS Access</a><br /> <br />Or Raise a <a href="http://support.flexquarters.com/esupport/index.php?/Tickets/Submit" target="_blank">Support Ticket</a> <br /><br /> There shall be no code change required in your MS-Access Application/Queries, and it should be able to work with the latest QuickBooks &amp; QODBC. <br /><br /> <strong>Additional Information:</strong><br /> With every release of QuickBooks/QODBC, new fields or features might be added. If you want to leverage the new areas, you will have to re-link the tables in Access. Refer: <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2679" target="_blank">How to Re-Link QuickBooks Data in MS Access using QODBC</a>.<br /><br />Please refer to the link below for details about the updated QODBC table &amp; report schema and the relation between tables. You will also get information on each report column parameter that is supported. You can also view all table/column details.<br /><br /> Please refer to QODBC <a href="http://qodbc.com/schema.htm" target="_blank">Data Layout</a> for more details.<br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to use Between in QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2764]]></link>
<guid isPermaLink="false"><![CDATA[98d8a23fd60826a2a474c5b4f5811707]]></guid>
<pubDate><![CDATA[Wed, 30 Mar 2016 10:39:19 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How to use Between in QODBC 
Problem Description:
I need to use Between, in a range of dates, to return new customers in one period. I try this:  SELECT FullName FROM Customer Where TimeCreated Between {d'2007-12-18'} AND {d'2007-12-1...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How to use Between in 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 need to use Between, in a range of dates, to return new customers in one period. I try this: <br /><br /> SELECT FullName FROM Customer Where TimeCreated Between {d'2007-12-18'} AND {d'2007-12-19'} AND SalesRepRefFullName='PD' <br /><br />Is the use of QODBC correct?</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;">The use of BETWEEN here is fine. It's just TimeCreated is a TIMESTAMP, not a date. It should be: <br /><br /> SELECT FullName FROM Customer Where TimeCreated Between {ts'2007-12-18 00:00:00.000'} AND {ts'2007-12-19 00:00:00.000'} AND SalesRepRefFullName='PD' </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - ODBC driver doesn't support this statement. Updating existing record]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2763]]></link>
<guid isPermaLink="false"><![CDATA[f804d21145597e42851fa736e221da3f]]></guid>
<pubDate><![CDATA[Wed, 30 Mar 2016 10:35:27 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - ODBC driver doesn't support this statement. Updating existing record 
Problem Description:
I'm trying to make Inventory Items inactive after a sale programmatically or Active after voiding a sale. I thought the following SQL statement...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - ODBC driver doesn't support this statement. Updating existing record </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'm trying to make Inventory Items inactive after a sale programmatically or Active after voiding a sale.<br /><br /> I thought the following SQL statement would have worked fine, but I got error 214217887(80040e21), saying the ODBC driver doesn't support this statement.<br /><br /> sSQL = "UPDATE ItemInventory SET ItemInventory.IsActive = True " &amp; _<br /> "WHERE (((ItemInventory.ListID)='ED0000-1173904787'))"</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 doesn't support the Table name used in the SET columns. So you need to remove the table name before the column name in the SET condition. For example:<br /><br /> sSQL = "UPDATE ItemInventory SET IsActive = True " &amp; _<br /> "WHERE (((ListID)='ED0000-1173904787'))" <br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How do I get Table Record Count fastest way using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2762]]></link>
<guid isPermaLink="false"><![CDATA[2b6921f2c64dee16ba21ebf17f3c2c92]]></guid>
<pubDate><![CDATA[Wed, 30 Mar 2016 10:33:07 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How do I get Table Record Count the fastest way using QODBC 
Problem Description:
What is the fastest way to get the number of records from a table?&nbsp;
Solution:
QODBC would need to scan the whole table to get the record or row c...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How do I get Table Record Count the fastest way 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;">What is the fastest way to get the number of records from a table?</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 would need to scan the whole table to get the record or row count. So you shouldn't do it if you don't need to. If you must do it, run the query against the optimized table using nosync like this: <br /><br />SELECT count(listid) as "Table Row Count" from Customer nosync<br /> <br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How can I use wildcard (*) with Crystal Report and sp_report]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2761]]></link>
<guid isPermaLink="false"><![CDATA[566a9968b43628588e76be5a85a0f9e8]]></guid>
<pubDate><![CDATA[Wed, 30 Mar 2016 10:30:34 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How can I use a wildcard (*) with Crystal Report and sp_report 
Problem Description:
I am using the following SQL statement: sp_report JobProfitabilityDetail show AmountActualCost_Title, AmountActualRevenue_Title, AmountDifferenceActu...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How can I use a wildcard (*) with Crystal Report and sp_report </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am using the following SQL statement: <br /><br />sp_report JobProfitabilityDetail show AmountActualCost_Title, AmountActualRevenue_Title, AmountDifferenceActual_Title, Text, Label, AmountActualCost, AmountActualRevenue, AmountDifferenceActual parameters DateMacro = 'All', SummarizeColumnsBy = 'TotalOnly' , EntityFilterFullNameWithChildren = '{?customer}' <br /><br />I then create a customer parameter in the parameter list. The customer name is pretty long, so is there a way to search by using a wildcard, i.e., *50-126*, rather than having to enter: <br /><br />Customer name. location.50-126.projectdescription??</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;">Sorry, you can't use wildcards, and you need to use the full name path for a specific job: <br /><br />sp_report JobProfitabilityDetail parameters DateMacro = 'All', EntityFilterFullNameWithChildren = 'Abercrombie, Kristy:Remodel Bathroom', SummarizeColumnsBy = 'TotalOnly' <br /><br />If you wanted, for example, to compare all Remodel Bathroom (or 50-126) jobs for all customers, you would need to run the Job Profitability detail report for each customer to a data file (like an append query in MS Access) and report from the data file instead.<br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How can I get Last Items sold to customer details]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2759]]></link>
<guid isPermaLink="false"><![CDATA[35c5a2cb362c4d214156f930e7d13252]]></guid>
<pubDate><![CDATA[Wed, 30 Mar 2016 10:22:39 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How can I get the Last Items sold to the customer's details 
Problem Description:
I created a report using a custom set with the customer as the parent and InvoiceLine as the child, giving me items ordered in the past. My problem is t...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How can I get the Last Items sold to the customer's details </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 created a report using a custom set with the customer as the parent and InvoiceLine as the child, giving me items ordered in the past. <br /><br />My problem is that I only want the last time an item was ordered and want to eliminate some things, such as shipping.<br /><br />When I try to filter out items like shipping, it also takes out any invoice line items.<br /><br />I'm at a complete loss when it comes to getting only the last time an item was ordered.&nbsp;</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 get items ordered by a customer, in part name order, with the last date ordered first,t by using the below query:<br /><br />SELECT TxnDate, InvoiceLineItemRefFullName, sum(InvoiceLineQuantity) as Qty FROM InvoiceLine WHERE CustomerRefFullName='Cook, Brian: Kitchen' and InvoiceLineItemRefFullName is not null Group by InvoiceLineItemRefFullName, TxnDate Order by InvoiceLineItemRefFullName, TxnDate desc <br /><br /> <img src="//support.flexquarters.com/esupport/newimages/Sold/step1.png" alt="" border="0" /><br /><br />Or for the last time an item was ordered by a customer:<br /><br />SELECT Top 1 TxnDate, InvoiceLineItemRefFullName, sum(InvoiceLineQuantity) as Qty FROM InvoiceLine WHERE CustomerRefFullName='Cook, Brian:Kitchen' and InvoiceLineItemRefFullName = 'Appliance' Group by InvoiceLineItemRefFullName, TxnDate Order by InvoiceLineItemRefFullName, TxnDate desc<br /><br /> <img src="//support.flexquarters.com/esupport/newimages/Sold/step2.png" alt="" border="0" /><br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to extract printed checks information using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2758]]></link>
<guid isPermaLink="false"><![CDATA[7f141cf8e7136ce8701dc6636c2a6fe4]]></guid>
<pubDate><![CDATA[Wed, 30 Mar 2016 10:19:01 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How to extract printed checks information using QODBC 
Problem Description:
We are involved in a new project with our bank involving a 'Positive Payment' solution that requires I send them a file with the check summary data each time ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How to extract printed checks information 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;">We are involved in a new project with our bank involving a 'Positive Payment' solution that requires I send them a file with the check summary data each time we do a check printing run. The example layout I received from this looks like this: (best viewed with a fixed font) <br /><br />----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8<br /><br />RECONCILIATIONHEADER0075207990012345600000001000000005<br />20799001234560000071909000005100020040512 Abelman, Frayne &amp; Schwab<br />20799001234560000071910000000200020040512 American Express <br />20799001234560000071911000000200020040512 Arizona Dept. of Revenue <br />20799001234560000071912000000200020040512 Arrow Electronics Inc. <br />20799001234560000071913000000200020040512 ASCOM Hasler Mailing Sys<br /><br />I can manage the formatting if I can get the data into Access, but I need to grab the check number, check amount, issue date, void indicator, if that's available, and the payee name. <br /><br />Can I do this?</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;">If you are paying bills each day and printing them in a daily batch, then you can try looking at the following: <br /><br />SELECT RefNumber, Amount, TxnDate, Memo, PayeeEntityRefFullName FROM BillPaymentCheck where BankAccountRefFullname='Checking' and IsToBePrinted is NULL and TxnDate={fn CURDATE()} <br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Correlated subqueries in UPDATE Statement]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2757]]></link>
<guid isPermaLink="false"><![CDATA[d58e2f077670f4de9cd7963c857f2534]]></guid>
<pubDate><![CDATA[Wed, 30 Mar 2016 10:16:55 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Correlated subqueries in the UPDATE Statement 
Problem Description:
I want to update the salesrep field in my existing invoices. I want to use the salesrep value stored in the Customer file. I would normally do this in SQL using a cor...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Correlated subqueries in the UPDATE Statement </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 want to update the salesrep field in my existing invoices. I want to use the salesrep value stored in the Customer file. I would normally do this in SQL using a correlated subquery. When I run the following query: update Invoice set SalesReprefFullName = (select SalesRepRefFullName from Customer where Invoice.CustomerrefFullName = Company.FullName), I get the following error: [QODBC] Expected lexical element not found:</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;">Sorry, even your nested SELECT statement is invalid. It would be best if you always referenced the TxnID for all update operations using QODBC. For example, for Invoices, the update operation would look like this: <br /><br />Update Invoice set SalesRepRefListID='10000-1197757777' where Invoice.TxnID='2B55-1071523067' <br /><br />Where:<br /><br />SalesRepRefListID is the List ID for an existing Sales Representative from the SalesRep table.<br />TxnID is the Transaction ID for the existing Invoice from the Invoice table.</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Billable Payroll - Need to Display More Fields on Invoice]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2756]]></link>
<guid isPermaLink="false"><![CDATA[9a11883317fde3aef2e2432a58c86779]]></guid>
<pubDate><![CDATA[Wed, 30 Mar 2016 10:13:11 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Billable Payroll - Need to Display More Fields on Invoice 
Problem Description:
We need to bill all payroll costs to various customers. Payroll costs are defined as all of the following: 1. Employee's gross salary 2. Company share of ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Billable Payroll - Need to Display More Fields on Invoice </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;">We need to bill all payroll costs to various customers. Payroll costs are defined as all of the following:<br /><br /> 1. Employee's gross salary<br /> 2. Company share of social security<br /> 3. Company share of Medicare<br /> 4. Federal unemployment taxes paid<br /> 5. Texas unemployment taxes paid<br /> When a payroll run is processed, all the above costs are coded to the appropriate customer, and QuickBooks flags them as "billable" at this point.<br /><br /> To bill the payroll costs, we go to the Customers menu and select "Invoice for Time and Expenses." All employee costs outlined above are then brought up in a list. We check the items we want to bill (all of them) and then select "create an invoice."<br /><br /> The above five items are listed separately when the invoice is created, but valuable descriptions are not displayed. We need the invoice to record the employee's name and the nature of the expense associated with each cost being billed out. E.g.<br /><br /> John Doe Gross Salary $500<br /> John Doe Company Social Security $25<br /> Etcetera<br /> We have tried using various invoice forms, and these fields are never available to select for inclusion.<br /><br /> We can see the fields needed in the payroll module by viewing the details of the employee check. However, we have not been successful in finding these fields in the QuickBooks tables so that we can pull them into the invoice using your software. If I can see the data in the tables, I am confident I can extract it using QODBC and SQL to format it into a suitable report.<br /><br /> Thanks in advance for any help.<br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Payroll/step1.png" alt="" border="0" /><br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Payroll/step2.png" alt="" border="0" /><br /><br /> </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;">You can get these details from the PayrollTransactionDetail report:<br /><br /> For this example, PayCheck: <br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Payroll/step3.png" alt="" border="0" /><br /><br /> You can find all the details using the following:<br /><br /> sp_report PayrollTransactionDetail show PayrollItem, WageBase, Credit, Debit, Amount parameters DateFrom = <strong>{d'2007-12-01'}</strong>, DateTo=<strong>{d'2007-12-01'}</strong>, IncludeAccounts = 'All,' ReportDetailLevelFilter = 'AllExceptSummary,' EntityFilterFullNameWithChildren=<strong>'Dan T. Miller'</strong> Where PayrollItem is not NULL<br /><br /> Change the bold entries to the employee and paycheck date you're after<br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Payroll/step4.png" alt="" border="0" /><br /><br /> </span></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 - How to stop any query on VB Demo Application]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2749]]></link>
<guid isPermaLink="false"><![CDATA[d37b3ca37106b2bfdeaa12647e3bb1c9]]></guid>
<pubDate><![CDATA[Thu, 10 Mar 2016 12:34:31 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How to stop any query on the VB Demo Application 
Problem Description:
How to stop any query on VBDEMO when it takes time. How to convert the date to a QuickBooks date. I want to insert TxnDate in the ReceivePayment table, but it pops...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How to stop any query on the VB Demo Application </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;">How to stop any query on VBDEMO when it takes time. <br /><br />How to convert the date to a QuickBooks date. <br /><br />I want to insert TxnDate in the ReceivePayment table, but it pops up the operator and operand error. <br /><br />I am just inserting values in the ReceivePayment Table. My Query is:<br /><br />INSERT INTO ReceivePayment (CustomerRefListID, ARAccountRefListID,txndate, RefNumber, PaymentMethodRefFullName, Memo, DepositToAccountRefListID, TotalAmount, IsAutoApply) VALUES ('B480000-1171302186', '3C0000-1164634404', '2007-02-12', '10667', 'SECPAY,' '72465', '80000-1164634403',54.04, TRUE) <br /><br />I am looking for your early reply with thanks.</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 stop query execution by clicking "Stop Query" from the QODBC Icon on the system tray. Right-click on the QODBC Icon in the system tray and click on "Stop Query" for 5 or 10 minutes. <br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SVBD/step1.png" alt="" border="0" /> <br /><br />If the above does not work, and you need to close VB Demo, use Alt-Ctrl-Del and the Windows Task Manager to end the VB Demo application task:<br /><br /> <br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/SVBD/step2.png" alt="" border="0" /> <br /><br />QODBC uses the standard SQL date format: {d'YYYY-MM-DD'}. You will get an Invalid operand for operator error when you provide the wrong data type values in your query. Please refer to&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2734" target="_blank">Troubleshooting - [QODBC] Invalid operand for operator</a><br /><br />INSERT INTO ReceivePayment (CustomerRefListID, ARAccountRefListID,txndate, RefNumber, PaymentMethodRefFullName, Memo, DepositToAccountRefListID, TotalAmount, IsAutoApply) VALUES ('B480000-1171302186', '3C0000-1164634404', {d'2007-02-12'}, '10667', 'SECPAY,' '72465', '80000-1164634403',54.04, TRUE)</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How do I void an Invoice?]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2747]]></link>
<guid isPermaLink="false"><![CDATA[868b7df964b1af24c8c0a9e43a330c6a]]></guid>
<pubDate><![CDATA[Wed, 09 Mar 2016 13:06:45 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How do I void an Invoice? 
Problem Description:
I don't see any indicator in the Invoice table. How do I void an Invoice? And how do I query for invoices that have been voided?&nbsp;
Solution:
You can use SP_VOID just like you would...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How do I void an Invoice? </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 don't see any indicator in the Invoice table. How do I void an Invoice? And how do I query for invoices that have been voided?</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 use SP_VOID just like you would use DELETE. It will void the invoice instead of deleting it.<br /><br />For Example:<br /><br />SP_VOID FROM Invoice WHERE TxnID = '1B03F-1513346399' <br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VOID/step1.png" alt="" border="0" /><br /><br />You can use the query below to get a list of Voided Invoices.<br /><br />Select RefNumber, CustomerRefFullName, and Memo from Invoice, like 'VOID:%.'<br /><br />If no InvoiceLine is returned, you can resync your optimized InvoiceLine table by running:<br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/VOID/step2.png" alt="" border="0" /><br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How do I get Timeframe information - Sales by Hour reporting using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2746]]></link>
<guid isPermaLink="false"><![CDATA[d37124c4c79f357cb02c655671a432fa]]></guid>
<pubDate><![CDATA[Wed, 09 Mar 2016 13:02:42 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How do I get Timeframe information - Sales by Hour reporting using QODBC 
Problem Description:
This is a no-technical question, but one I need to answer myself before jumping into QODBC. I'm considering working with QODBC to get the i...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How do I get Timeframe information - Sales by Hour reporting 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;">This is a no-technical question, but one I need to answer myself before jumping into QODBC. I'm considering working with QODBC to get the information we can't get easily from QuickBooks reports. I want to ask people working with QODBC, QuickBooks, and QuickBooks POS if QODBC can access and work with information related to the time of purchases. For example, view items that sell the most at 11 AM or between 4 and 5 PM, and also see what those items are. I don't know if this information is located in the QuickBooks or the QuickBooks POS file. If someone could tell me if I could access this type of information, I could start working with QODBC. I would appreciate any help.</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 use the query below to get time frame information using QODBC.<br /><br />For Example: <br /><br />SELECT {fn HOUR(TimeCreated)} as Hour, SalesLineQuantity as Qty, Type, RefNumber as Num, SalesLineItemRefFullName as Item, SalesLineDesc as Memo, SalesLineRate as SalesPrice, SalesLineAmount as Amount, TimeModified, CustomFieldContract as Contract# FROM SalesLine NOSYNC where (TxnDate &gt;= {d'2007-12-01'} and TxnDate &lt;={d'2007-12-31'}) and {fn CONVERT( {fn HOUR(TimeCreated)}, SQL_VARCHAR)} = '22' and SalesLineType='Item' and SalesLineItemRefFullName is not null and SalesLineQuantity &gt; 0 order by SalesLineQuantity DESC, SalesLineItemRefFullName <br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/2746/001-Test-Tool.png" alt="" width="633" height="398" border="0" /> <br /><br />Where '22' is the hour using a 24-hour format.<br />(TxnDate &gt;= {d'2007-12-01'} and TxnDate &lt;={d'2007-12-31'}) is the start and end date for the report <br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How do I delete orphaned InvoiceLine records?]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2745]]></link>
<guid isPermaLink="false"><![CDATA[531db99cb00833bcd414459069dc7387]]></guid>
<pubDate><![CDATA[Wed, 09 Mar 2016 12:56:01 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How do I delete orphaned InvoiceLine records? 
Problem Description:
The InvoiceLine table contains orphan records (the parent invoice record no longer exists). I tried:DELETE FROM Invoice WHERE TxnID = 'xxxx-xxxxxxxxx'The TxnID is sup...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How do I delete orphaned InvoiceLine records? </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;">The InvoiceLine table contains orphan records (the parent invoice record no longer exists). I tried:<br /><br />DELETE FROM Invoice WHERE TxnID = 'xxxx-xxxxxxxxx'<br /><br />The TxnID is supplied from a list before running the DELETE command.<br /><br />However, no records are deleted. What am I doing wrong?&nbsp;</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;">The first step is actually to check that there are orphaned InvoiceLines. I would hazard a guess that you have orphaned optimized InvoiceLine only and no real orphaned InvoiceLines in QuickBooks. Run the following query with the unoptimized tag using <strong>QODBC Test Tool</strong>:- <br /><br />SELECT TxnID, InvoiceLineTxnLineID, InvoiceLineDesc, InvoiceLineAmount, RefNumber FROM InvoiceLine unoptimized where RefNumber = 'YourRefNumber.'<br /><br />Where 'YourRefNumber' is the Reference to the Invoice.<br /><br />If no InvoiceLine is returned, you can resync your optimized InvoiceLine table by running:<br /><br />sp_optimizefullsync InvoiceLine<br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How can I get daily Bill Payment information?]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2744]]></link>
<guid isPermaLink="false"><![CDATA[5a45828dead8c065099cb653a2185df1]]></guid>
<pubDate><![CDATA[Wed, 09 Mar 2016 12:52:37 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Problem Description:
How can I get daily payment bill information? And how can I get daily Bill Payment information using QODBC, and how can I get these details?&nbsp;&nbsp;
Solution:
You can use the query below to get details about daily Bill Payments...]]></description>
<content:encoded><![CDATA[<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;">How can I get daily payment bill information? And how can I get daily Bill Payment information using QODBC, and how can I get these details?&nbsp;</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 use the query below to get details about daily Bill Payments.<br /><br /> For Example:<br /><br /> SELECT DueDate, VendorRefFullName as Vendor, RefNumber as Ref, AmountDue as "Amt. Due" FROM Bill where IsPaid = 0 and DueDate &lt;= {d'2007-12-25'} order by DueDate <br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2744/01.png" alt="" border="0" /></span></p>
<p><strong> <strong>Note:</strong>&nbsp;</strong>&nbsp;<a href="https://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2981" target="_blank">QODBC Support Wizard</a> is used only to test QODBC SQL queries and is not a development tool.</p>
<p>&nbsp;</p>
<p><strong><span style="font-family: Arial,Helvetica,sans-serif;">Or</span></strong></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You can go straight to the BillToPay table like this.<br /><br /> SELECT BillToPay.BillToPayDueDate as "Date Due," Bill.VendorRefFullName as Vendor, BillToPay.BillToPayRefNumber as Ref, BillToPay.BillToPayAmountDue as "Amt. Due", BillToPay.CreditToApplyCreditRemaining as "Credit Remaining" FROM BillToPay, Bill where BillToPay.BillToPayTxnID = Bill.TxnID and BillToPay.BillToPayDueDate &lt;= {d'2007-12-25'} order by BillToPay.BillToPayDueDate<br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2744/02.png" alt="" border="0" /><br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How can I Get all the Records for a specified Year]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2743]]></link>
<guid isPermaLink="false"><![CDATA[22b1f2e0983160db6f7bb9f62f4dbb39]]></guid>
<pubDate><![CDATA[Wed, 09 Mar 2016 12:48:20 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How can I get all the Records for a specified Year 
Problem Description:
I need to compute a Year-to-Date total paid using the Invoice table. I'm working in MS-Access and need to run the following statement: SELECT SUM(Subtotal) FROM ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How can I get all the Records for a specified Year </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 need to compute a Year-to-Date total paid using the Invoice table. I'm working in MS-Access and need to run the following statement: <br /><br />SELECT SUM(Subtotal) FROM Invoice WHERE CustomerRefListID = 'some customer ID' AND IsPaid AND TimeCreated BETWEEN date1 AND date2&nbsp;</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 use the query below to get details about records for a specified Year. <br /><br />For Example:<br /><br />Select * from Invoice where {fn YEAR(TxnDate)} = 2017 <br /><br />For more details, refer to: <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2203" target="_blank">How are dates formatted in SQL queries when using the QuickBooks generated timestamps</a>?</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How can I change the pricing and quantity of Items in an ItemGroup?]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2742]]></link>
<guid isPermaLink="false"><![CDATA[78f7d96ea21ccae89a7b581295f34135]]></guid>
<pubDate><![CDATA[Wed, 09 Mar 2016 12:44:34 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How can I change the pricing and quantity of Items in an ItemGroup? 
Problem Description:
How can I change the price of each item in a group? Is it possible? If yes, please give me an example.  
Solution:
The ItemInventory, ItemServ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How can I change the pricing and quantity of Items in an ItemGroup? </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;">How can I change the price of each item in a group? Is it possible? If yes, please give me an example. <br /> </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;">The ItemInventory, ItemService, and ItemOtherCharge item itself determines the price of an item within an ItemGroup. The cost of an ItemService item can be calculated using standard UPDATE statements, for example: <br /><br />For Example:<br /><br />Update ItemService Set SalesOrPurchasePrice=40 where Name='Floor Plans' <br /><br />You cannot change the price or quantity of individual item group lines within an Invoice. To do that, you should read the item group lines and write each item separately on separate invoice lines. You can, however, state the quantity of the item group itself.</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Expenses written to BillExpenseLine are not showing as Billable when viewed in QuickBooks]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2741]]></link>
<guid isPermaLink="false"><![CDATA[cdcb2f5c7b071143529ef7f2705dfbc4]]></guid>
<pubDate><![CDATA[Wed, 09 Mar 2016 12:39:59 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Expenses written to BillExpenseLine are not showing as Billable when viewed in QuickBooks 
Problem Description:
The field ExpenseLineBillableStatus contains the status of the BillExpenseLine and uses the following stored procedure "sp...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Expenses written to BillExpenseLine are not showing as Billable when viewed in QuickBooks </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;">The field ExpenseLineBillableStatus contains the status of the BillExpenseLine and uses the following stored procedure "sp_columns" command in <strong>QODBC Test Tool</strong>: <br /><br />sp_columns BillExpenseLine <br /><br />shows the: ExpenseLineBillableStatus valid values as: |Billable|NotBillable|HasBeenBilled| <br /><br />However, the following insert failed:- <br /><br />INSERT INTO BillExpenseLine (VendorReflistid, APAccountRefFullName,txndate, RefNumber, ExpenseLineAccountRefFullname, ExpenseLineAmount, ExpenseLinememo, ExpenseLineBillableStatus, ExpenseLineTaxCodeReffullname, FQSaveToCache ) VALUES ('290000-1045709633', 'Accounts Payable', {d'2006-02-01'}, '111111', 'Boosters COGS', 244, '2 of 222233433 aaaaaabbbbbca', 'Billable', 'NCG',0) <br /><br />With an "Insert into a linked table, "BillExpenseLine failed with an error.</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;">For the Billable, NotBillable, and HasBeenBilled flags to be used on a Bill Expense Line within QuickBooks, a Customer Job "ExpenseLineCustomerRefListID" must also be assigned. <br /><br />To create a BillExpenseLine with a "Billable" status using two SQL insert statements:<br /><br />Statement 1<br /><br />INSERT INTO "BillExpenseLine" ("ExpenseLineAccountRefListID," "ExpenseLineAmount," "ExpenseLineMemo," "ExpenseLineCustomerRefListID," "ExpenseLineBillableStatus," "ExpenseLineTaxCodeRefListID," "FQSaveToCache") VALUES ('270000-1045536344', 500.00, 'QODBC Expense Line Memo Test 1', '100000-1045537156', 'Billable,' 'C0000-1045536338', 1) <br /><br />Statement 2<br /><br />INSERT INTO "Bill" ("VendorRefListID," "APAccountRefListID," "TxnDate," "RefNumber," "TermsRefListID," "DueDate," "Memo") VALUES ('200000-1045537156', '3D0000-1045609540', {d'2006-02-02'}, '20061', '20000-1045536343', {d'2006-03-02'}, 'QODBC Bill Expense Memo Test') <br /><br />The key to this process is in the field named "FQSaveToCache." This field is not part of the table but is used as a flag to the QODBC driver. In the sequence above, you should note that the value of "FQSaveToCache" is set to 1 (trustworthy) in the first statement. <br /><br />A proper (1) setting of "FQSaveToCache" instructs QODBC to take the values from the INSERT statement and hold them for later processing, but not to save them to QuickBooks yet. When QODBC receives the final transaction where the cache is set to 0 (false) or not specified, as shown in the second statement, the contents of the current INSERT statement will be combined with all of the previous INSERT statements held in the cache for this connection and saved as a batch into QuickBooks. <br /><br />Note: The BillExpenseLine.ExpenseLineAccountRefListID must be an asset type. You cannot use a COGS (cost of goods sold) type account.</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How Do I List the Subtotal of Invoices within Date Range]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2739]]></link>
<guid isPermaLink="false"><![CDATA[56584778d5a8ab88d6393cc4cd11e090]]></guid>
<pubDate><![CDATA[Wed, 09 Mar 2016 12:27:25 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - How Do I List the Subtotal of Invoices within the Date Range 
Problem Description:
I want to list the subtotal of all Invoices by a customer for not only that particular customer but all jobs assigned to that customer within a specifi...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - How Do I List the Subtotal of Invoices within the Date Range </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 want to list the subtotal of all Invoices by a customer for not only that particular customer but all jobs assigned to that customer within a specified date range. <br /><br />What QODBC SQL Statement would I use? <br /><br />This is what I have so far: <br /><br />SELECT SUM(Subtotal) AS gt FROM Invoice WHERE CustomerRefListId='30000-1166980720' AND (TxnDate&gt;={d'2006-12-24'} AND TxnDate&lt;={d'2007-01-23'}) <br /><br />But that will only get me the subtotal of invoices for the primary customer, but it doesn't get me the combined subtotal of all the invoices for each job under that customer. <br /><br />Is there a way to combine it all into one SQL Statement? Or do I have to use multiple statements and then manually combine all the totals?</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;">You can use the query below to get the Subtotal of Invoices Within the Date Range using QODBC. <br /><br />You can run this query: <br /><br />SELECT Invoice.CustomerRefFullName, Sum(Invoice.SubTotal) AS SumOfSubTotal FROM Invoice WHERE (((Invoice.TxnDate)&gt;={d'2007-01-01'})) and (((Invoice.TxnDate)&lt;{d'2007-12-01'})) GROUP BY Invoice.CustomerRefFullName<br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Subtotal/step1.png" alt="" border="0" /> <br /><br />You can change the greater than or equal (&gt;=) and the less than (&lt;) dates to the date range you wish to use.<br /> <br /><br />If you want to get the SubTotal of all Invoices for Customer 2 and all the Customer 2 Jobs combined, I suggest you go straight to the QuickBooks reporting engine instead, which will add up and total things for you (including any credits). QuickBooks reports can be accessed using the QODBC stored report procedures: <br /><br />sp_report SalesByCustomerSummary show Text as Customer, Label as Job, Amount_1 as Total parameters DateFrom = {d'2007-01-01'}, DateTo= {d'2007-12-01'}, SummarizeColumnsBy = 'TotalOnly' <br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Subtotal/step2.png" alt="" border="0" /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Invoice Line Rate is not loading into QuickBooks Online]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2735]]></link>
<guid isPermaLink="false"><![CDATA[1d49780520898fe37f0cd6b41c5311bf]]></guid>
<pubDate><![CDATA[Tue, 09 Feb 2016 12:50:22 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Invoice Line Rate is not loading into QuickBooks Online.
Problem Description:
The InvoiceLineRate value passed in the insert query to create the InvoiceLine record is not being loaded into QBO. Below are the two queries I am using to ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Invoice Line Rate is not loading into QuickBooks Online.</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;">The InvoiceLineRate value passed in the insert query to create the InvoiceLine record is not being loaded into QBO. <br /><br />Below are the two queries I am using to create the invoice.<br /><br />Insert into "InvoiceLine" ("CustomerRefListID," "CustomerRefFullName," "InvoiceLineItemRefListID," "InvoiceLineDesc," "InvoiceLineQuantity," "InvoiceLineRate," "InvoiceLineAmount," "FQSaveToCache") VALUES ('11', 'Alder Electric,' '19', 'Todd Gardner', 37.5, 42.50, 1593.75, 1) <br /><br />Insert into "Invoice" ("CustomerRefListID," "CustomerRefFullName," "TxnDate," "RefNumber," "BillAddressAddr1", "BillAddressAddr2", "BillAddressAddr3", "BillAddressAddr4", "BillAddressCity," "BillAddressState," "BillAddressPostalCode," "TermsRefListID," "TermsRefFullName," "DueDate")VALUES ('11', 'Alder Electric,' {d'2015-12-06'}, '1388', 'Alder Electric,' 'Dannon Alder,' '605 N 1250 W', '', 'Centerville,' 'UT,' '84014', '5', 'Due upon Receipt,' {d'2015-12-21'})</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 Online has the logic that if the user has provided Quantity, Rate &amp; Amount, QODBC will send Quantity &amp; Amount to QuickBooks. <br /><br />So you need to send Quantity &amp; Rate and remove Amount. The Amount will be auto-calculated.<br /><br />For Example:<br /><br />Insert into "InvoiceLine" ("CustomerRefListID," "CustomerRefFullName," "InvoiceLineItemRefListID," "InvoiceLineDesc," "InvoiceLineQuantity," "InvoiceLineRate," "FQSaveToCache") VALUES ('11', 'Alder Electric,' '19', 'Todd Gardner', 37.5, 42.50, 1) <br /><br />Insert into "Invoice" ("CustomerRefListID," "CustomerRefFullName," "TxnDate," "RefNumber," "BillAddressAddr1", "BillAddressAddr2", "BillAddressAddr3", "BillAddressAddr4", "BillAddressCity," "BillAddressState," "BillAddressPostalCode," "TermsRefListID," "TermsRefFullName," "DueDate")VALUES ('11', 'Alder Electric,' {d'2015-12-06'}, '1388', 'Alder Electric,' 'Dannon Alder,' '605 N 1250 W', '', 'Centerville,' 'UT,' '84014', '5', 'Due upon Receipt,' {d'2015-12-21'})</span></p>
<h3>&nbsp;</h3>
<p>&nbsp;</p>
<p>Tags: QuickBooks Online, QBO, QODBC Online, invoice line rate, Quantity, Rate,&nbsp;invoice line amount, invoice line</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - [QODBC] Invalid operand for operator: &lt;assignment&gt;]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2734]]></link>
<guid isPermaLink="false"><![CDATA[7f7c351ee977c765aa8cd5c7020bc38f]]></guid>
<pubDate><![CDATA[Tue, 19 Jan 2016 10:31:14 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - [QODBC] Invalid operand for the operator: &lt;assignment&gt; 
Problem Description:
I am getting the error "Invalid operand for the operator: &lt;assignment&gt;" while trying to insert an invoice line item: INSERT INTO InvoiceLine ( Cu...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - [QODBC] Invalid operand for the operator: &lt;assignment&gt; </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am getting the error "Invalid operand for the operator: &lt;assignment&gt;" while trying to insert an invoice line item: <br /><br />INSERT INTO InvoiceLine ( CustomerRefListID, TemplateRefListID, RefNumber, InvoiceLineItemRefListID, InvoiceLineRate, InvoiceLineAmount, InvoiceLineTaxCodeRefListID, FQSaveToCache) VALUES ( '800019E1-1428688811', '8000001B-1360624407', '17003', '80000129-1362767268', 65.0000, '130.00', '80000002-1358615111', 0)<br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Operand/step1.png" alt="" border="0" /> </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;">You will get an Invalid operand for operator error when you provide the wrong data type values in your query.<br /><br />For Example: <br /><br />The column data type is decimal/integer/bit &amp; you are inserting the value as a string/character. <br /><br />In your query, the InvoiceLineAmount column&nbsp;data type is decimal &amp; you provided the value as a string/character. <br /><br />Please refer to the sample query &amp; test again:<br /><br />INSERT INTO InvoiceLine ( CustomerRefListID, TemplateRefListID, RefNumber, InvoiceLineItemRefListID, InvoiceLineRate, InvoiceLineAmount, InvoiceLineTaxCodeRefListID, FQSaveToCache) VALUES ( '800019E1-1428688811', '8000001B-1360624407', '17003', '80000129-1362767268', 65.0000, 130.00, '80000002-1358615111', 0)<br /><br />Please refer to QODBC <a href="http://qodbc.com/schema.htm" target="_blank">Data Layout</a> for more details.<br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - [QODBC] Column not found ReorderBuildPoint]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2728]]></link>
<guid isPermaLink="false"><![CDATA[5e751896e527c862bf67251a474b3819]]></guid>
<pubDate><![CDATA[Mon, 11 Jan 2016 10:54:16 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - [QODBC] Column not found ReorderBuildPoint 
Problem Description:
We just upgraded to v16 on both QuickBooks and QODBC, and now refreshes from Excel aren't working. We're getting the message "[QODBC] Column not found ReorderBuildPoint....]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - [QODBC] Column not found ReorderBuildPoint </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;">We just upgraded to v16 on both QuickBooks and QODBC, and now refreshes from Excel aren't working. We're getting the message "[QODBC] Column not found ReorderBuildPoint."<br /><br /> <img src="//support.flexquarters.com/esupport/newimages/ROBP/step1.png" alt="" border="0" /></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;"> Column "ReorderBuildPoint" has been changed in QODBC's latest version. Now,&nbsp;<strong>ReorderPoint</strong> &amp; <strong>BuildPoint</strong> are coming separately through QuickBooks SDK. So we have changed this in QODBC. <br /><br /> So it would be best if you edited the column name in your query in the Excel sheet command text.<br /><br /> Please refer to QODBC <a href="http://qodbc.com/schema.htm" target="_blank">Data Layout</a> for more details:</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Getting Unexpected extra token error in Date Field Query]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2726]]></link>
<guid isPermaLink="false"><![CDATA[b1c00bcd4b5183705c134b3365f8c45e]]></guid>
<pubDate><![CDATA[Mon, 11 Jan 2016 10:28:03 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Getting Unexpected extra token error in Date Field Query 
Problem Description:
I am trying to query the Transaction table based on the TxnDate field.I tried the code below.OdbcCommand SourceCmd = new OdbcCommand("Select * from Transac...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Getting Unexpected extra token error in Date Field Query </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am trying to query the Transaction table based on the TxnDate field.<br /><br />I tried the code below.<br /><br />OdbcCommand SourceCmd = new OdbcCommand("Select * from Transaction where TxnDate &gt;= {d '2010-01-01'} and TxnDate &lt;= {d '" + DateTime.Now.ToString("yyyy-MM-dd") + "'} ", cnQODBC);<br /><br />I am getting this error:<br /><br />ERROR [42000] [QODBC] [sql syntax error] Expected lexical element not found: = <br /><br />And when&nbsp;I try this one:<br /><br />OdbcCommand SourceCmd = new OdbcCommand("Select * from Transaction where TxnDate &gt;= #2010-01-01# and TxnDate &lt;= #" + DateTime.Now.ToString("yyyy-MM-dd") + "# ", cnQODBC);<br /><br />I get this error:<br /><br />ERROR [42000] [QODBC] Unexpected extra token: #<br /><br />What is the correct format to pass the date values ??<br /><br />I am using C#.<br /> </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 refer to the article below for the date format in QODBC:<br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2203">How are dates formatted in SQL queries when using the QuickBooks-generated timestamps</a><br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] What is Jumpin Type?]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2725]]></link>
<guid isPermaLink="false"><![CDATA[4bbdcc0e821637155ac4217bdab70d2e]]></guid>
<pubDate><![CDATA[Mon, 11 Jan 2016 10:24:35 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ What is Jumpin Type? 
Problem Description:
I am looking for the definition and usage of "JUMPIN TYPE." 
Solution:
In QODBC, JUMPIN provides relationship details with other tables and information about the value coming from another table.  Please refe...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> What is Jumpin Type? </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am looking for the definition and usage of "JUMPIN TYPE."<br /> </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;">In QODBC, JUMPIN provides relationship details with other tables and information about the value coming from another table. <br /><br /> Please refer to QODBC <a href="http://qodbc.com/schema.htm" target="_blank">Data Layout</a> for more details:<br /><br /> Jumpin is the terminology used in QODBC to show a relationship with another table. You can relate to Jumpin as a relationship. <br /><br /> <br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - &quot;Cannot update table ItemInventory Error 10004&quot;]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2724]]></link>
<guid isPermaLink="false"><![CDATA[64a08e5f1e6c39faeb90108c430eb120]]></guid>
<pubDate><![CDATA[Mon, 11 Jan 2016 10:21:35 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - "Cannot update table ItemInventory Error 10004." 
Problem Description:
I am trying to run an update on the Name field in ItemInventory. I've checked to see if it's updateable, and it is.I get "Cannot update table ItemInventory Error 1...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - "Cannot update table ItemInventory Error 10004." </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am trying to run an update on the Name field in ItemInventory. I've checked to see if it's updateable, and it is.<br /><br />I get "Cannot update table ItemInventory Error 10004," and sometimes a window pops up after clicking OK, saying there is not enough memory to complete this task or similar. I was unable to get a screenshot of the error. I run the query with nothing else open overnight on a computer with 16GB of RAM. Memory should not be an issue. I need to be able to update part numbers in batches because there are over 30,000 parts. You can't do it one at a time.<br /><br />Please help.<br /> </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 put a limit on your update query &amp; try again instead of updating all records at a time. Please try to update records in a small group/part. <br /><br />QODBC is an ODBC driver. The QODBC driver works with all front-end applications which can access ODBC, some of which are faster than others. The QuickBooks interface SDK, which uses XML, is not the speediest file system available, but it does the job.<br /><br />Please remember that QODBC is not a database but rather a translation tool. QuickBooks is a non-normalized flat file system with no indexes and will not perform like SQL Server or dBase files. Every transaction you request must be translated and communicated via large, complicated XML transactions to QuickBooks. <br /><br />The QuickBooks application layer needs to process those XML requests. The larger the number of Records, the lengthier the XML request; therefore, QuickBooks may take more time and memory to process longer requests. <br /><br />QODBC sends the request to QuickBooks (via QBSDK), and QuickBooks will process the request(the request is in XML format); if there are more records, then QuickBooks may throw an "Out Of Memory" error. <br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to Insert information from MS Excel spreadsheet to QuickBooks using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2707]]></link>
<guid isPermaLink="false"><![CDATA[65f2a94c8c2d56d5b43a1a3d9d811102]]></guid>
<pubDate><![CDATA[Mon, 02 Nov 2015 13:05:56 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Problem Description: 
How to insert employee time information from an MS Excel time spreadsheet into QuickBooks using QODBC
Solution: 
You cannot perform insert/update operations directly in MS Excel because Excel is just exporting tables in the spread...]]></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;">How to insert employee time information from an MS Excel time spreadsheet into QuickBooks 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;">You cannot perform insert/update operations directly in MS Excel because Excel is just exporting tables in the spreadsheet. Excel does not create link tables like MS Access. If you want to insert/update using MS Excel, then you need to use MS Query, which will execute the statement you enter in the editor, or you can write VBA code in Excel. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please refer to the article for how to write SQL statements using MS Query: <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2352" target="_blank">Microsoft Office with MS Query and QODBC</a>.</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">Troubleshooting - How to enable Microsoft Excel 365 - Legacy Microsoft Query</a>.</p>
<p>You can use ADO in VB to connect to QuickBooks via VBA in MS Excel.</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please refer to the sample code for inserting records through VBA:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Sub test() <br />Const adopt static = 3<br />Const adLockOptimistic = 3<br /> <br />Dim oConnection<br />Dim oRecordset<br />Dim sMsg<br />Dim sConnectString<br />Dim sSQL<br /> <br />sConnectString = "DSN=QuickBooks Data;OLE DB Services=-2;"<br />sSQL = "INSERT INTO TimeTracking (EntityRefListID, DurationMinutes, TxnDate, CustomerRefFullName, ItemServiceRefFullName, PayrollItemWageRefFullName) VALUES ( '370000-933272659', 480, {d'2007-12-18'}, 'Pretell Real Estate:75 Sunset Rd.', 'Removal,' 'Salary')." <br />Set oConnection = CreateObject("ADODB.Connection")<br />Set oRecordset = CreateObject("ADODB.Recordset")<br />oConnection.Open sConnectString<br />oConnection.Execute (sSQL)<br />sMsg = sMsg &amp; "Record Added!!!"<br />MsgBox sMsg<br />Set oRecordset = Nothing<br />Set oConnection = Nothing<br />End Sub</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please note: All query values are coming from sample company files. Please change it according to your company file value before using it.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please click here to <a href="http://support.flexquarters.com/esupport/newimages/TT/Insert Timetracking.xlsm">download a sample MS Excel file.</a></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to retrieve character fields which are returned as NULL in SSIS using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2701]]></link>
<guid isPermaLink="false"><![CDATA[df0e09d6f25a15a815563df9827f48fa]]></guid>
<pubDate><![CDATA[Fri, 30 Oct 2015 09:06:16 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[How to retrieve character fields that are returned as NULL in SSIS using QODBC
Problem:
Using SQL Server Integration Service (SSIS) and QODBC, All character fields are being returned as NULL. 
Solution: 
Please use the function CONVERT to convert the ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">How to retrieve character fields that are returned as NULL in SSIS using QODBC</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;">Using SQL Server Integration Service (SSIS) and QODBC, All character fields are being returned as NULL. </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 use the function CONVERT to convert the data into SQL_VARCHAR type to fix this problem.<br /> <br />You can use the CONVERT function in SSIS like this:<br /> <br />{fn CONVERT(ColumnName, SQL_VARCHAR)}<br /> <br />Here is an example of how to use this function in a linked server:<br /><br />Syntax: SELECT {fn CONVERT(ColumnName, SQL_VARCHAR)} FROM LinkedServerName...TableName<br /> <br />Example: SELECT {fn CONVERT(ListID, SQL_VARCHAR)} FROM QODBC...Customer<br /> <br />Please note &ldquo;QODBC&rdquo; is the linked server name on our machine. Please replace it using your linked server when testing it on your end.</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to get Conversion Ratio information from UnitOfMeasureSetRelatedUnit Table in QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2692]]></link>
<guid isPermaLink="false"><![CDATA[d790c9e6c0b5e02c87b375e782ac01bc]]></guid>
<pubDate><![CDATA[Mon, 26 Oct 2015 05:59:00 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[How to get Conversion Ratio information from UnitOfMeasureSetRelatedUnit Table in QODBC
Conversion ratio information is stored in a table called UnitOfMeasureSetRelatedUnit.
Problem:
How to get Conversion Ratio information from UnitOfMeasureSetRelatedU...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">How to get Conversion Ratio information from UnitOfMeasureSetRelatedUnit Table in QODBC</span></h2>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Conversion ratio information is stored in a table called UnitOfMeasureSetRelatedUnit.</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">How to get Conversion Ratio information from UnitOfMeasureSetRelatedUnit Table in 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;">We can get conversion ratio information by using INNER JOIN on SalesOrderLine Table. </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">We can get conversion ratio information by comparing UnitOfMeasureSetRelatedUnit.ListID and SalesOrderLine.ListID </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Please refer below-mentioned query for conversion ratio information: </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> Select S.RefNumber, S.TxnDate, S.SalesOrderLineItemRefFullName, S.SalesOrderLineQuantity,<br />S.SalesOrderLineRate, U.UnitOfMeasureType, U.Name, U.BaseUnitName, U.RelatedUnitName,<br />U.RelatedUnitConversionRatio From UnitOfMeasureSetRelatedUnit U<br /> INNER JOIN SalesOrderLine S ON S.SalesOrderLineOVerrideUOMSetRefListID = U.ListID</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - QODBC Driver dropping a few transactions on insert to InvoiceLines]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2689]]></link>
<guid isPermaLink="false"><![CDATA[577fd60255d4bb0f466464849ffe6d8e]]></guid>
<pubDate><![CDATA[Thu, 08 Oct 2015 09:06:20 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - QODBC Driver dropping a few transactions on insert to InvoiceLines
Problem Description:
We seem to have an issue with an insert into the InvoiceLines table, dropping a few transactions. We need to create about 1000 invoices per month, ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - QODBC Driver dropping a few transactions on insert to InvoiceLines</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;">We seem to have an issue with an insert into the InvoiceLines table, dropping a few transactions. <br /><br />We need to create about 1000 invoices per month, with an average of about 6 - 7 lines per invoice. As QuickBooks cannot handle a set-based insert, we have used a cursor to insert the invoice lines and generate an invoice customer by customer (using the FQSaveToCache flag as the trigger. The code is as follows:<br /><br />SET COUNT ON<br /><br />DECLARE curOutput CURSOR FOR SELECT CustomerRefListID, TemplateRefListID, TxnDate, TermsRefListID, CustomerMsgRefListID, InvoiceLineItemRefListID, InvoiceLineQuantity, InvoiceLineRate, InvoiceLineAmount, FQSavetoCache FROM dbo.QBQODBC_INVOICEPOSTINGDATA WHERE CustomerRefListID IS NOT NULL ORDER BY CustomerRefListID, FQSavetoCache DESC<br />DECLARE @CustomerID VARCHAR(100)<br />DECLARE @TemplateID VARCHAR(100)<br />DECLARE @TransactionDate DATETIME<br />DECLARE @CustomerTermsID VARCHAR(100)<br />DECLARE @CustomerMsgID VARCHAR(100)<br />DECLARE @ItemID VARCHAR(100)<br />DECLARE @Quantity DECIMAL(18,2)<br />DECLARE @Rate DECIMAL(18,2)<br />DECLARE @Amount DECIMAL(18,2)<br />DECLARE @QBFlag INT<br />DECLARE @i INT<br />SET @i = 0<br /><br />OPEN curOutput<br />FETCH NEXT<br />FROM curOutput<br /><br />INTO @CustomerID,@TemplateID,@TransactionDate,@CustomerTermsID,@CustomerMsgID,@ItemID,@Quantity,@Rate,@Amount,@QBFlag; --Subroutine for QB insert<br />WHILE @@FETCH_STATUS = 0<br /><br />BEGIN<br />INSERT INTO QREMOTE...INVOICELINE (CustomerRefListID, TemplateRefListID, TxnDate, TermsRefListID, CustomerMsgRefListID, InvoiceLineItemRefListID, InvoiceLineQuantity, InvoiceLineRate, InvoiceLineAmount, FQSaveToCache)<br />VALUES( @CustomerID, @TemplateID, @TransactionDate, @CustomerTermsID, @CustomerMsgID, @ItemID, @Quantity, @Rate, @Amount, @QBFlag )<br />SET @i = @i + 1<br />IF @QBFlag = 0 and @i &gt; 500<br />BEGIN<br />WAITFOR DELAY '00:05:00.'<br />set @i = 0<br />END<br /><br />PRINT 'Transaction quantity of ' + CAST(@Quantity AS VARCHAR(12)) + ' for item ID ' + @ItemID + ' for customer ID ' + @CustomerID + ' is now posted.'<br />FETCH NEXT<br />FROM curOutput<br />INTO @CustomerID, @TemplateID, @TransactionDate, @CustomerTermsID, @CustomerMsgID, @ItemID, @Quantity, @Rate, @Amount, @QBFlag ; END<br />--End subroutine for QB insert<br /><br />CLOSE curOutput<br />DEALLOCATE curOutput<br /><br />Our original code was identical to the above, except that it did not include the WAITFOR DELAY code triggered every time the FQSavetoCache flag is set to zero. The code works beautifully and has successfully created invoices in QuickBooks for hundreds of customers.<br /><br />Adding the 10-second delay when the FQSavetoCache flag was set to zero would resolve the issue, but it has not. If the 10-second delay doesn't seem to work when the flag is zero, I could set the delay to wait for a second or two after each row of data. Unfortunately, we are only at about a 97 - 98% success rate in the accuracy of the invoices being generated, and the issue seems to be the inability of QuickBooks (or the QODBC driver) to keep up with the data being fed from our SQL Server table (which we have verified is 100% accurate).A<br /><br /> <img src="//support.flexquarters.com/esupport/newimages/Drop/step1.png" alt="http://support.flexquarters.com/esupport/newimages/Drop/step1.png" width="1580" height="731" /><br /><br /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><br />OLE DB provider "MSDASQL" for linked server "qremote" returned message "[QODBC] Not supported - At least one Line record is required. Please insert Child/Detail record(s) before inserting Parent/Header record. For more details, please visit:qodbc.com/links/2953".<br />Msg 7343, Level 16, State 2, Line 74<br />The OLE DB provider "MSDASQL" for linked server "qremote" could not INSERT INTO table "[MSDASQL]".</span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Do you have any suggestions? Please advise.<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;"> We did troubleshooting and found SQL Server sends the Disconnect command every 5 minutes. The disconnect command is not expected from SQL Server when there is activity on the linked server. This is not a QODBC or QRemote issue.<br /><br /> <a href="http://forums.sqlteam.com/t/sql-server-linked-server-to-odbc-connection-drops-connection-every-4-5-minutes/2635" target="_blank">[forums.sqlteam.com]SQL Server Linked Server to ODBC Connection Drops connection every 4-5 minutes</a><br /><br /> <a href="https://social.technet.microsoft.com/Forums/en-US/dc7ee777-e75a-4b62-8c1e-59f2dbcea530/sql-server-linked-server-to-odbc-connection-drops-connection-every-45-minutes?forum=sqldatabaseengine" target="_blank">[social.technet.microsoft.com]SQL Server Linked Server to ODBC Connection Drops connection every 4-5 minutes</a><br /><br /> <a href="http://forums.sqlteam.com/t/is-there-a-way-to-disconnect-linked-server-connection-not-delete-and-re-add/2958" target="_blank">[forums.sqlteam.com]Is there a way to Disconnect the Linked Server connection - Not delete and re-add</a><br /><br /> <a href="https://social.msdn.microsoft.com/Forums/sqlserver/en-US/0d638dec-0f13-4d42-a7fa-96c5a6b78f33/is-there-a-way-to-disconnect-linked-server-connection-not-delete-and-readd?forum=sqldatabaseengine" target="_blank">[social.technet.microsoft.com]Is there a way to Disconnect the Linked Server connection - Not delete and re-add</a><br /><br />There seems to be no option in SQL Server, which does not cause why SQL Server is sending the Disconnect command.<br /><br />We can't use MS Access as middleware because MS Access as a middleware has the same issue.<br /><br /> </span></p>
<h4><span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Workaround 1:</span></span></h4>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;"> As a workaround, You can add some timing logic to the looping, like if the header insert is completed, if it is 4 minutes, it will sleep for 1 minute &amp; 10 seconds. The sleep of 1 minute &amp; 10 seconds will automatically send a disconnect command and resume after 1 minute. By doing so, you noticed no loss of invoice line But yes, inserting time increased due to sleep.<br /><br />Please use the below script:<br /><br />SET NOCOUNT ON<br /><br />DECLARE curOutput CURSOR FOR SELECT CustomerRefListID, TemplateRefListID, TxnDate, TermsRefListID, CustomerMsgRefListID, InvoiceLineItemRefListID, InvoiceLineQuantity, InvoiceLineRate, InvoiceLineAmount, FQSavetoCache FROM dbo.QBQODBC_INVOICEPOSTINGDATA WHERE CustomerRefListID IS NOT NULL ORDER BY CustomerRefListID, FQSavetoCache DESC<br />DECLARE @CustomerID VARCHAR(100)<br />DECLARE @TemplateID VARCHAR(100)<br />DECLARE @TransactionDate DATETIME<br />DECLARE @CustomerTermsID VARCHAR(100)<br />DECLARE @CustomerMsgID VARCHAR(100)<br />DECLARE @ItemID VARCHAR(100)<br />DECLARE @Quantity DECIMAL(18,2)<br />DECLARE @Rate DECIMAL(18,2)<br />DECLARE @Amount DECIMAL(18,2)<br />DECLARE @QBFlag INT<br />DECLARE @i INT<br />DECLARE @firstTime datetime<br />DECLARE @currentTime datetime<br />SET @i = 0<br />set @firstTime=GETDATE();<br />set @currentTime=GETDATE();<br /><br />OPEN curOutput<br />FETCH NEXT<br />FROM curOutput<br />INTO @CustomerID,@TemplateID,@TransactionDate,@CustomerTermsID,@CustomerMsgID,@ItemID,@Quantity,@Rate,@Amount,@QBFlag;<br />--Subroutine for QB insert<br />WHILE @@FETCH_STATUS = 0<br /><br />BEGIN<br />INSERT INTO QRemote...INVOICELINE (CustomerRefListID, TemplateRefListID,TxnDate, TermsRefListID,CustomerMsgRefListID, InvoiceLineItemRefListID, InvoiceLineQuantity, InvoiceLineRate,InvoiceLineAmount, FQSaveToCache)<br />VALUES( @CustomerID, @TemplateID, @TransactionDate, @CustomerTermsID, @CustomerMsgID, @ItemID, @Quantity, @Rate, @Amount, @QBFlag )<br /><br />PRINT 'Transaction quantity of ' + CAST(@Quantity AS VARCHAR(12)) + ' for item ID ' + @ItemID + ' for customer ID ' + @CustomerID + ' is now posted.'<br />set @currentTime=GETDATE();<br /><br />IF @QBFlag = 0 and ((SELECT DATEDIFF(ss,@firstTime,@currentTime))&gt; 240) --240=4 minutes. 270=4:30minutes <br /><br />BEGIN<br />PRINT 'It is Sleep time ' + CAST(@QBFlag AS VARCHAR(12)) + ' for @firstTime : ' + CONVERT(nvarchar(90), @firstTime, 21) + ' @currentTime :' + CONVERT(nvarchar(90), @currentTime, 21) + ' ------. ' <br />WAITFOR DELAY '00:01:10.'<br />set @firstTime=GETDATE();<br />set @currentTime=GETDATE();<br />PRINT 'Wake up time ' + CAST(@QBFlag AS VARCHAR(12)) + ' for @firstTime : ' + CONVERT(nvarchar(90), @firstTime, 21) + ' @currentTime :' + CONVERT(nvarchar(90), @currentTime, 21) + ' ------. ' <br />END<br /><br />FETCH NEXT<br />FROM curOutput<br />INTO @CustomerID, @TemplateID, @TransactionDate, @CustomerTermsID, @CustomerMsgID, @ItemID, @Quantity, @Rate, @Amount, @QBFlag ;<br />END<br /><br />--End subroutine for QB insert<br />CLOSE curOutput<br />DEALLOCATE curOutput<br /></span></span></p>
<h4><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Workaround 2:</span></h4>
<p><span style="font-family: Arial, Helvetica, sans-serif;">You can use another workaround as below:<br /><br />1) Insert an Invoice Line along with Invoice header fields with FQSaveToCache as 0. This will create an invoice in QuickBooks.<br /><br />2) Get the Last Insert ID of the Invoice.<br /><br />3) Using a loop for the rest of the invoice line, Insert each invoice line to the existing Invoice by Passing TxnID &amp; with FQSaveToCache as 0 in the insert statement. This will update the current invoice and add a new line item.<br /><br />As the above solution does not use FQSaveToCache, the SQL Server Disconnect issue will not affect it.<br /><br />Please use the below script:<br /><br />SET NOCOUNT ON<br /><br />DECLARE curOutput CURSOR FOR SELECT CustomerRefListID, TemplateRefListID, TxnDate, TermsRefListID, CustomerMsgRefListID, InvoiceLineItemRefListID, InvoiceLineQuantity, InvoiceLineRate, InvoiceLineAmount, FQSavetoCache FROM dbo.QBQODBC_INVOICEPOSTINGDATA WHERE CustomerRefListID IS NOT NULL ORDER BY CustomerRefListID, FQSavetoCache DESC DECLARE @CustomerID VARCHAR(100)<br />DECLARE @TemplateID VARCHAR(100)<br />DECLARE @TransactionDate DATETIME<br />DECLARE @CustomerTermsID VARCHAR(100)<br />DECLARE @CustomerMsgID VARCHAR(100)<br />DECLARE @ItemID VARCHAR(100)<br />DECLARE @Quantity DECIMAL(18,2)<br />DECLARE @Rate DECIMAL(18,2)<br />DECLARE @Amount DECIMAL(18,2)<br />DECLARE @QBFlag INT<br />DECLARE @i INT<br />DECLARE @txnID VARCHAR(100)<br />SET @i = 0<br />OPEN curOutput<br />set @txnID =''<br />FETCH NEXT<br />FROM curOutput<br />INTO @CustomerID,@TemplateID,@TransactionDate,@CustomerTermsID,@CustomerMsgID,@ItemID,@Quantity,@Rate,@Amount,@QBFlag;<br />--Subroutine for QB insert<br />WHILE @@FETCH_STATUS = 0<br />BEGIN<br /><br />if @txnID =''<br />begin<br />INSERT INTO QRemote...INVOICELINE (CustomerRefListID, TemplateRefListID,TxnDate, TermsRefListID,CustomerMsgRefListID, InvoiceLineItemRefListID, InvoiceLineQuantity, InvoiceLineRate,InvoiceLineAmount, FQSaveToCache) VALUES( @CustomerID, @TemplateID, @TransactionDate, @CustomerTermsID, @CustomerMsgID, @ItemID, @Quantity, @Rate, @Amount, 0 )<br />--Get the Last inserted it<br /><br />Set @txnid= (select LastInsertId from openquery(QRemote,'sp_lastinsertid InvoiceLine'))<br /><br />end<br /><br />else<br /><br />begin<br />INSERT INTO QRemote...INVOICELINE (txnID, CustomerRefListID,TemplateRefListID, TxnDate,TermsRefListID, CustomerMsgRefListID,InvoiceLineItemRefListID, InvoiceLineQuantity, InvoiceLineRate,InvoiceLineAmount, FQSaveToCache)<br />VALUES( @txnID,@CustomerID, @TemplateID, @TransactionDate, @CustomerTermsID, @CustomerMsgID, @ItemID, @Quantity, @Rate, @Amount, 0 )<br />end<br /><br />if @QBFlag=0<br />begin<br />set @txnID =''<br />end<br /><br />PRINT 'Transaction quantity of ' + CAST(@Quantity AS VARCHAR(12)) + ' for item ID ' + @ItemID + ' for customer ID ' + @CustomerID + ' is now posted.' FETCH NEXT FROM curOutput INTO @CustomerID, @TemplateID, @TransactionDate, @CustomerTermsID, @CustomerMsgID, @ItemID, @Quantity, @Rate, @Amount, @QBFlag ; END<br />--End subroutine for QB insert<br /><br />CLOSE curOutput<br />DEALLOCATE curOutput<br /> </span></p>
<p>&nbsp;</p>
<div id="commentparent">
<div id="commentsformcontainer"><form action="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Comments/Submit/2418/" enctype="multipart/form-data" method="post" name="CommentsForm"></form></div>
</div>
<table class="gstl_50 gssb_c" style="width: 206px; display: none; top: 170px; left: 257px; position: absolute;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="gssb_f">&nbsp;</td>
<td class="gssb_e" style="width: 100%;">&nbsp;</td>
</tr>
</tbody>
</table>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - QODBC Connection to Talend Open Studio]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2688]]></link>
<guid isPermaLink="false"><![CDATA[b38e5ff5f816ac6e4169bce9314b2996]]></guid>
<pubDate><![CDATA[Thu, 08 Oct 2015 08:58:05 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - QODBC Connection to Talend Open Studio
Note: The JDBC-ODBC bridge driver was removed in Java 8, preventing ODBC drivers from being usable in newer versions of Java or other Java-based applications.
Refer:&nbsp;Oracle JDBC-ODBC Bridge
...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - QODBC Connection to Talend Open Studio</span></h2>
<p><span style="color: #000000; font-family: Arial,Helvetica,sans-serif;"><strong><span style="color: #ff0000;">Note</span></strong><span style="color: #ff0000;">:</span></span> <strong>The JDBC-ODBC bridge driver was removed in Java 8, preventing ODBC drivers from being usable in newer versions of Java or other Java-based applications.</strong></p>
<p>Refer:&nbsp;<a href="http://docs.oracle.com/javase/7/docs/technotes/guides/jdbc/bridge.html" target="_blank">Oracle JDBC-ODBC Bridge</a></p>
<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">How to Use QODBC with NetBeans</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;"> QuickBooks Enterprise comes with a tool called QODBC that enables connecting to a QuickBooks database to read and write data. I have installed it and can successfully see QuickBooks data by connecting with Excel.<br /><br />I am attempting to be able to read data in Talend Open Studio 5.4.1 by using the Generic ODBC connector. I can get a successful connection message when setting up the database connection, but retrieving the schema to see the tables shows no tables. There are no errors or any other indication - just no table listing. <br /><br /> <img src="//support.flexquarters.com/esupport/newimages/Talend/step1.png" alt="http://support.flexquarters.com/esupport/newimages/Talend/step1.png" width="785" height="503" /><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;"> Please query the table directly instead of loading tables. Use a tDBInput component, use a SELECT query &amp; Click on "Guess Schema."<br /><br />For Example:<br /><br />Select * from the customer<br /><br /></span></p>
<table class="gstl_50 gssb_c" style="width: 206px; display: none; top: 170px; left: 257px; position: absolute;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="gssb_f">&nbsp;</td>
<td class="gssb_e" style="width: 100%;">&nbsp;</td>
</tr>
</tbody>
</table>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to get VBA to execute two statements at the same time]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2686]]></link>
<guid isPermaLink="false"><![CDATA[3a0844cee4fcf57de0c71e9ad3035478]]></guid>
<pubDate><![CDATA[Thu, 08 Oct 2015 08:42:23 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How to get VBA to execute two statements at the same time
Problem Description:
 We use a Visual Basic app with an SQL Server database to write data to QuickBooks through QODBC. We are executing two SQL statements as described in your h...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - How to get VBA to execute two statements at the same time</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;"> We use a Visual Basic app with an SQL Server database to write data to QuickBooks through QODBC. We are executing two SQL statements as described in your help. We are getting an error saying either:<br /><br />1) The transactions are not in balance - meaning it seems that both transactions are not being executed at the same time or<br /><br />2) If we try to combine the two text strings into one SQL server statement, that "missing semicolon at the end of SQL statement."<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;"> You are getting a transaction not in balance error because only one statement is executed. You should execute both statements one by one.<br /><br />You cannot run both statements at the same time. You have to run them one after the other.<br /><br />Also, the connection should not be closed between the executions of two queries. If the connection is closed, then you will face the error.<br /><br />Please refer to the below-mentioned sample VBA code for executing two statements one after the other:<br /><br />Public Sub exampleInsert()<br /><br />Const adOpenStatic = 3<br /><br />Const adLockOptimistic = 3<br /><br />Dim oConnection<br /><br />Dim oRecordset<br /><br />Dim sMsg<br /><br />DoCmd.RunSQL " INSERT INTO JournalEntryCreditLine(refnumber,journalcreditlineaccountreffullname,JournalCreditLineAmount,JournalCreditLineMemo,FQSaveToCache) Values ('1234','operating1',555.00,'test memo transfer cred',1)&rdquo;<br /><br />DoCmd.RunSQL " INSERT INTO JournalEntryDebitLine(ref number,JournalDebitLineAccountReffullname, JournalDebitLineAmount, JournalDebitLineMemo, FQSaveToCache) VALUES ('1234', 'operating2',555.00, 'Test Memo transfer deb,' 0)."</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><br />sMsg = sMsg &amp; "Record Added!!!"<br /><br />MsgBox sMsg<br /><br />Set oRecordset = Nothing<br /><br />Set oConnection = Nothing<br /><br />End Sub<br /><br /><br /></span></p>
<table class="gstl_50 gssb_c" style="width: 206px; display: none; top: 170px; left: 257px; position: absolute;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="gssb_f">&nbsp;</td>
<td class="gssb_e" style="width: 100%;">&nbsp;</td>
</tr>
</tbody>
</table>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How do I build a connection string with all the available QRemote parameters / Connection String with QRemote Parameters.]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2681]]></link>
<guid isPermaLink="false"><![CDATA[dcda54e29207294d8e7e1b537338b1c0]]></guid>
<pubDate><![CDATA[Tue, 08 Sep 2015 07:30:09 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[General Connection String
Instructions
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The most difficult part of using QRemote in programming is the connection string. The simplest form includes a reference to a DSN. A system DSN called "QuickBooks Data QRemote" for 32...]]></description>
<content:encoded><![CDATA[<h2><span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: #6633cc;">General Connection String</span></span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Instructions</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The most difficult part of using QRemote in programming is the connection string. The simplest form includes a reference to a DSN. A system DSN called "QuickBooks Data QRemote" for 32-bit applications &amp; "QuickBooks Data 64-bit QRemote" for 64-bit applications is automatically created when QODBC is installed. "QuickBooks Data QRemote" will be used in all examples but can be substituted for any different DSN name you make.<br /> <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Normally ADO pools connections. QRemote does <span style="color: #ff0000;">not</span> support connection pooling. It is recommended to tell ADO not to do connection pooling on any QRemote connection. This is done with OLE DB Services=-2.</span></p>
<h3><span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: #0066cc;">Parameters available on the connection string</span></span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><!--mstheme--> <img src="http://archive.qodbc.com/www.qodbc.com.au/_themes/ibmred_3flashs/bullet1.gif" alt="bullet" width="7" height="7" hspace="17" /> <span style="color: #0000cc;">IP Address</span> = IP address of QRemote Server. <!--mstheme--> <!--msthemelist--> <!--msthemelist--> </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img src="http://archive.qodbc.com/www.qodbc.com.au/_themes/ibmred_3flashs/bullet1.gif" alt="bullet" width="7" height="7" hspace="17" /> <!--mstheme--> <span style="color: #0000cc;">Port</span> = IP address of QRemote Server. <!--mstheme--> <!--msthemelist--> <!--msthemelist--> </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img src="http://archive.qodbc.com/www.qodbc.com.au/_themes/ibmred_3flashs/bullet1.gif" alt="bullet" width="7" height="7" hspace="17" /> <!--mstheme--> <span style="color: #0000cc;">EncryptionKey</span> = Encryption Key settled in QRemote Server. (If you have set Encryption Key in QRemote Server.) By default, it is blank. <!--mstheme--> <!--msthemelist--> <!--msthemelist--> </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img src="http://archive.qodbc.com/www.qodbc.com.au/_themes/ibmred_3flashs/bullet1.gif" alt="bullet" width="7" height="7" hspace="17" /> <!--mstheme--> <span style="color: #0000cc;">RemoteDSN</span> = Remote DSN which you want to use. By default, it is "QuickBooks Data." </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img src="http://archive.qodbc.com/www.qodbc.com.au/_themes/ibmred_3flashs/bullet1.gif" alt="bullet" width="7" height="7" hspace="17" />&nbsp;<span style="color: #0000cc;">OLE DB Services</span>=-2</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> <strong><span style="color: #990000;">Example of simple DSN</span></strong><br />32-bit:<br />sConnectString = "DSN=QuickBooks Data QRemote;OLE DB Services=-2;"<br /> <br />64-bit:<br />sConnectString = "DSN=QuickBooks Data 64-bit QRemote;OLE DB Services=-2;"<br /> <br /> <strong><span style="color: #990000;">Example of a DSNless connection string</span></strong><br />Without Encryption Key:<br />sConnectString = "Driver={QRemote for QuickBooks};OLE DB Services=-2;IPAddress=127.0.0.1;Port=4500;RemoteDSN=QuickBooks Data;" <br /> <br />With Encryption Key:(Replace 123456 with your Encryption Key value) <br />sConnectString = "Driver={QRemote for QuickBooks};OLE DB Services=-2;IPAddress=127.0.0.1;Port=4500;EncryptionKey=123456;RemoteDSN=QuickBooks Data;" <br /> <br /> </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: #820000;"><strong><span style="color: #990000;">Standard syntax</span></strong><br /> </span>"Driver={QRemote for QuickBooks};OLE DB Services=-2;IPAddress=127.0.0.1;Port=4500;"</span><span style="font-family: Arial, Helvetica, sans-serif;"><br /> </span></p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to locate data found in QuickBooks by table and field name inside QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2676]]></link>
<guid isPermaLink="false"><![CDATA[d89a66c7c80a29b1bdbab0f2a1a94af8]]></guid>
<pubDate><![CDATA[Fri, 28 Aug 2015 08:43:47 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How to locate data found in QuickBooks by table and field name inside QODBC
Problem Description:
I have a question about How to locate data found in QuickBooks by table and field name inside the QODBC system. 
Solutions:
 The fastest...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - How to locate data found in QuickBooks by table and field name inside 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 a question about How to locate data found in QuickBooks by table and field name inside the QODBC system.<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;"> The fastest way to find data in QuickBooks via the QODBC Driver is to use the bait and sync method. Inside QuickBooks, place a unique "bait" value in the field in question, such as <strong>find me</strong>&nbsp;for text fields or 123321 for numeric fields, and save the data. Then start QODBC Test Tool and connect to the QuickBooks company file. Refer to&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2512" target="_blank">Connecting QODBC Driver to QuickBooks for the First Time (Video)</a>, then do a global search for the "bait" value. The file and field name will be shown if the data is available via QODBC. <br /><br />Please follow the steps below to locate QuickBooks data by table and field name inside the QODBC system.<br /><br />1) Add a sample <strong>find me</strong>&nbsp;to Invoice or bill records (i.e., RefNumber).<br /><br />For Example, We are creating an Invoice with RefNumber (i.e., Invoice#) <strong>findme</strong>. <br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2676/Q1.png" alt="" /><br />2) Add a sample <strong>123321</strong> in the CreditMemo rate.<br /><br />For Example, We are creating CreditMemo with Rate <strong>123321</strong>. <br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2676/Q2.png" alt="" /><br />3) Use the SP_GLOBALSEARCH command to search data from the QuickBooks company file. <strong>(Requires v16.0.0.317 or above)</strong> <br /><br />sp_globalsearch SearchValue<br /><br />For Example: <br /><br />sp_globalsearch 'find me.'<br /><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2676/Q3.png" alt="" /> <br />sp_globalsearch '123321' </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2676/Q4.png" alt="" /> <br /></span></p>
<table class="gstl_50 gssb_c" style="width: 206px; display: none; top: 170px; left: 257px; position: absolute;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="gssb_f">&nbsp;</td>
<td class="gssb_e" style="width: 100%;">&nbsp;</td>
</tr>
</tbody>
</table>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to give refund to existing CreditMemo using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2675]]></link>
<guid isPermaLink="false"><![CDATA[a8aa681aaa4588a8dbd3b42b26d59a1a]]></guid>
<pubDate><![CDATA[Fri, 28 Aug 2015 08:31:45 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How to give refund to existing CreditMemo using QODBC
Problem Description:
How can I apply a refund check to an existing credit memo using QODBC?In QuickBooks, I can refund by opening the Create Credit Memos/Refunds dialogue box using ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - How to give refund to existing CreditMemo 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;">How can I apply a refund check to an existing credit memo using QODBC?<br /><br />In QuickBooks, I can refund by opening the Create Credit Memos/Refunds dialogue box using the QuickBooks UI and finding the credit memo for that customer. In the dialogue box icon bar, click on "Use the credit to give a refund." <br /><br /> <img src="//support.flexquarters.com/esupport/newimages/CMR/step1.png" alt="" /><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;"> You can use the CheckApplyCheckToTxn table and the Insert Only table to create a check to pay off a credit memo. You can give refunds to an existing credit memo by using the below queries: <br /><br />INSERT INTO CheckExpenseLine (AccountRefListID, ExpenseLineAccountRefListID, ExpenseLineAmount, ExpenseLineMemo, ExpenseLineCustomerRefListID, ExpenseLineBillableStatus, FQSaveToCache) Values ('20000-933270541', '40000-933270541',80, 'Test Memo,' '800000E2-1513333899', null,1) <br /><br /> <img src="//support.flexquarters.com/esupport/newimages/CMR/step2.png" alt="" /><br /><br />Insert into CheckApplyCheckToTxn ( AccountRefListID, PayeeEntityRefListID, TxnDate, ApplyCheckToTxnTxnID, ApplyCheckToTxnAmount) values ('20000-933270541', '800000E2-1513333899',{d'2017-12-18'},'1B3C0-1513338090',80)<br /><br /> <img src="//support.flexquarters.com/esupport/newimages/CMR/step3.png" alt="" /><br /><br />After executing the above queries, you can see CreditMemo as Refunded in QuickBooks.<br /><br /> <img src="//support.flexquarters.com/esupport/newimages/CMR/step5.png" alt="" /><br /><br />You can get ApplyCheckToTxnTxnID from the TxnID field of the CreditMemo table for that particular Transaction by using the below query.<br /><br />SELECT TxnID, RefNumber FROM CreditMemo where RefNumber='1268'<br /><br /> <img src="//support.flexquarters.com/esupport/newimages/CMR/step4.png" alt="" /><br /><br /> </span></p>
<div id="commentparent">
<div id="commentsformcontainer"><form action="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Comments/Submit/2418/" enctype="multipart/form-data" method="post" name="CommentsForm"></form></div>
</div>
<table class="gstl_50 gssb_c" style="width: 206px; display: none; top: 170px; left: 257px; position: absolute;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="gssb_f">&nbsp;</td>
<td class="gssb_e" style="width: 100%;">&nbsp;</td>
</tr>
</tbody>
</table>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Getting QODBC Not Supported error while Inserting Invoice]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2655]]></link>
<guid isPermaLink="false"><![CDATA[e0688d13958a19e087e123148555e4b4]]></guid>
<pubDate><![CDATA[Fri, 10 Jul 2015 08:43:42 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Getting QODBC Not Supported error while Inserting Invoice
Problem Description:
I am trying to insert an Invoice, But I am getting the below error: [QODBC] Not supported (#10003)  I am using below SQL statements: INSERT INTO "InvoiceLin...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Getting QODBC Not Supported error while Inserting Invoice</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 insert an Invoice, But I am getting the below error:<br /><br /> [QODBC] Not supported (#10003) <br /><br /> I am using below SQL statements:<br /><br /> INSERT INTO "InvoiceLine" ("InvoiceLineItemRefListID," "InvoiceLineDesc," "InvoiceLineRate," "InvoiceLineAmount," "InvoiceLineSalesTaxCodeRefListID," "FQSaveToCache") VALUES ('250000-933272656', 'Building permit 3', 3.00000, 3.00, '', 1)<br /><br /> INSERT INTO "Invoice" ("CustomerRefListID," "ARAccountRefListID," "TxnDate," "RefNumber," "BillAddressAddr1", "BillAddressAddr2", "BillAddressCity," "BillAddressState," "BillAddressPostalCode," "BillAddressCountry," "spending," "TermsRefListID," "DueDate," "ShipDate," "ItemSalesTaxRefListID," "Memo," "IsToBePrinted," "CustomerSalesTaxCodeRefListID") VALUES ('470001-1071525403', '40000-933270541', {d'2002-10-01'}, '1', 'Brad Lamb,' '1921 Appleseed Lane', 'Bayshore,' 'CA,' '94326', 'USA,' 0, '10000-933272658', {d'2002-10-31'}, {d'2002-10-01'}, '2E0000-933272656', 'Memo Test,' 0, '10000-999022286') <br /><br /> I am getting the below error: </span></p>
<p align="center"><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;"><img src="//support.flexquarters.com/esupport/newimages/NotSupported/step1.png" alt="http://support.flexquarters.com/esupport/newimages/NotSupported/step1.png" width="308" height="125" /></span></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> <br /><br /> Please let me know what I am doing wrong.<br /><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;"> You need to either provide a value for SalesTaxCodeRefListID, remove it, or pass null as a value instead of an empty string from the insert statement.<br /><br /> Your insert statement should be as below:<br /><br /> INSERT INTO "InvoiceLine" ("InvoiceLineItemRefListID," "InvoiceLineDesc," "InvoiceLineRate," "InvoiceLineAmount," "InvoiceLineSalesTaxCodeRefListID," "FQSaveToCache") VALUES ('250000-933272656', 'Building permit 3', 3.00000, 3.00, null, 1)<br /><br /> INSERT INTO "Invoice" ("CustomerRefListID," "ARAccountRefListID," "TxnDate," "RefNumber," "BillAddressAddr1", "BillAddressAddr2", "BillAddressCity," "BillAddressState," "BillAddressPostalCode," "BillAddressCountry," "IsPending," "TermsRefListID," "DueDate," "ShipDate," "ItemSalesTaxRefListID," "Memo," "IsToBePrinted," "CustomerSalesTaxCodeRefListID") VALUES ('470001-1071525403', '40000-933270541', {d'2002-10-01'}, '1', 'Brad Lamb,' '1921 Appleseed Lane', 'Bayshore,' 'CA,' '94326', 'USA,' 0, '10000-933272658', {d'2002-10-31'}, {d'2002-10-01'}, '2E0000-933272656', 'Memo Test,' 0, '10000-999022286') <br /><br /></span></p>
<table class="gstl_50 gssb_c" style="width: 206px; display: none; top: 170px; left: 257px; position: absolute;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="gssb_f">&nbsp;</td>
<td class="gssb_e" style="width: 100%;">&nbsp;</td>
</tr>
</tbody>
</table>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Error while Inserting Bill]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2654]]></link>
<guid isPermaLink="false"><![CDATA[7180cffd6a8e829dacfc2a31b3f72ece]]></guid>
<pubDate><![CDATA[Fri, 10 Jul 2015 08:34:44 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Error while Inserting Bill
Problem Description 1:
 I am following the below steps and getting the error.1. First, we inserted the records in Bill &amp; BillExpenseLine table, and the papers got inserted successfully.2. Second, we are i...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Error while Inserting Bill</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;"> I am following the below steps and getting the error.<br /><br />1. First, we inserted the records in Bill &amp; BillExpenseLine table, and the papers got inserted successfully.<br /><br />2. Second, we are inserting the records in BillPaymentCheckLine, and we are getting the below error<br /><br />"Error Parsing Complete XML return string."<br /><br />INSERT INTO BillPaymentCheckLine (PayeeEntityRefListID, APAccountRefListID, BankAccountRefListID, RefNumber, IsToBePrinted, AppliedToTxnTxnID, AppliedToTxnPaymentAmount) VALUES('80000EB1-1435326666', '80000037-1409939589', '80000024-1409927427', '555555',1, '81D4-1435326671', 88.3)<br /><br />Please let me know what I am doing wrong.<br /><br /> </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;"> Either remove RefNumber or IsToBePrinted from the insert statement. QuickBooks SDK will allow only one of the fields during insert/update &amp; due to this issue occurring.<br /><br />Your query should be as below.<br /><br />INSERT INTO BillPaymentCheckLine (PayeeEntityRefListID, APAccountRefListID, BankAccountRefListID, RefNumber, AppliedToTxnTxnID, AppliedToTxnPaymentAmount) VALUES('80000EB1-1435326666', '80000037-1409939589', '80000024-1409927427', '555555', '81D4-1435326671', 88.3)</span>&nbsp;</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;"> I am&nbsp;trying to link BillItemLine with PurchaseOrder. I am using the below query to connect transactions &amp; I am getting an XML error.<br /><br />"Error Parsing Complete XML return string."<br /><br />INSERT INTO BillItemLine ( ItemLineLinkToTxnTxnID, ItemLineLinkToTxnTxnLineID, ItemLineQuantity ) values ('271B-1071512692', '271D-1071512692',300 )<br /><br />Please let me know what I am doing wrong.<br /><br /> </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;">If you are trying to link transactions with Bill, you should include vendor details in your query. Please refer to the sample query &amp; test again:<br /><br />Your question should be as below.<br /><br />INSERT INTO BillItemLine (VendorRefListID, ItemLineLinkToTxnTxnID, ItemLineLinkToTxnTxnLineID, ItemLineQuantity) VALUES ('10000-933272655', '271B-1071512692', '271D-1071512692',30)<br /></span></p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to create Invoices using QRemote from SQL Server]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2651]]></link>
<guid isPermaLink="false"><![CDATA[148260a1ce4fe4907df4cd475c442e28]]></guid>
<pubDate><![CDATA[Fri, 05 Jun 2015 09:45:20 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Examples of Creating Invoice using QRemote from SQL Server 
 Note: For multi-line invoices, some may find it easier to NOT include the header information with each line item, but rather to have separate smaller commands for the Invoice Lines and a final&...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Examples of Creating Invoice using QRemote from SQL Server </span></h2>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> <strong>Note:</strong> For multi-line invoices, some may find it easier to NOT include the header information with each line item, but rather to have <span id="a0a24976-a8b6-48fe-ae8e-e3a5cfd67ba3" class="GINGER_SOFTWARE_mark">separate</span> smaller commands for the Invoice Lines and a final&nbsp; INSERT for the Invoice Header.</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Create an Invoice with 3 Lines</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Here we create an invoice with three lines by using 3 InvoiceLine INSERT commands (with the <span style="color: #ff0000;">FQSaveToCache</span> caching flag set true) followed by the Invoice table (header) insert, which is automatically designed to pull in all cached InvoiceLine records and save immediately.</span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>First Line </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">INSERT INTO QRemote...InvoiceLine(InvoiceLineItemRefListID,InvoiceLineDesc,InvoiceLineRate,InvoiceLineAmount,InvoiceLineSalesTaxCodeRefListID,FQSaveToCache) VALUES('240000-933272656','POWERTRAK-2000',200.00000,200.00,'20000-999022286',1)</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> <strong>Note: </strong> QRemote is a linked server name. It would be best if you changed it with your linked server name.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> Suppose you don't set up a linked server in SQL Server. Please refer below-mentioned link for creating the linked server. </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> For 32-bit SQL Server: <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2514">How to create Link Server with MS SQL 2005/2008/2012 32-bit Using QODBC/QRemote</a> </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> For 64-bit SQL Server: <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2458/52/how-to-create-link-server-with-ms-sql-200520082012-64-bit-using-qodbcqremote">How to create Link Server with MS SQL 2005/2008/2012 64-bit Using QODBC/QRemote</a> </span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Second Line </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">INSERT INTO QRemote...InvoiceLine(InvoiceLineItemRefListID,InvoiceLineDesc,InvoiceLineRate,InvoiceLineAmount,InvoiceLineSalesTaxCodeRefListID,FQSaveToCache) VALUES('240000-933272656','POWERTRAK-3000',200.00000,200.00,'20000-999022286',1)</span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Third Line </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">INSERT INTO QRemote...InvoiceLine(InvoiceLineItemRefListID,InvoiceLineDesc,InvoiceLineRate,InvoiceLineAmount,InvoiceLineSalesTaxCodeRefListID,FQSaveToCache) VALUES('240000-933272656','POWERTRAK-4000',200.00000,200.00,'20000-999022286',1)</span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Header Information </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">INSERT INTO QRemote...InvoiceLine(CustomerRefListID, ARAccountRefListID, TxnDate, RefNumber, BillAddressAddr1, BillAddressAddr2, BillAddressCity, BillAddressState, BillAddressPostalCode, BillAddressCountry, IsPending, TermsRefListID, DueDate, ShipDate, ItemSalesTaxRefListID, Memo, IsToBePrinted, CustomerSalesTaxCodeRefListID) VALUES('160000-933272658', '40000-933270541', {d'2014-10-01'}, '1', 'Brad Lamb,' '1921 AppleseedLane', 'Bayshore,' 'CA,' '94326', 'USA,' 0, '20000-933272658', {d'2014-10-31'}, {d'2014-10-01'}, '2E0000-933272656', 'Memo Test,' 0,'10000-999022286')</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/SQLInvoice/step1.png" alt="http://support.flexquarters.com/esupport/newimages/SQLInvoice/step1.png" width="1100" /></span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Results in QuickBooks </strong></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/SQLInvoice/step2.png" alt="http://support.flexquarters.com/esupport/newimages/SQLInvoice/step2.png" width="1100" height="522" /></span></p>
<h3>&nbsp;</h3>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Related Data Location </span></h3>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong><span id="1edee6aa-a2c4-410a-b36a-45e4f42b41c7" class="GINGER_SOFTWARE_mark">InvoiceLineItemRefListID</span></strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span id="41838a42-b8a5-4d33-b403-68b058dbb742" class="GINGER_SOFTWARE_mark">InvoiceLineItemRefListID</span> is '240000-933272656' and found like this:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Select ListId, and FullName from QRemote...An item where FullName is like 'F%.'</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/SQLInvoice/step3.png" alt="http://support.flexquarters.com/esupport/newimages/SQLInvoice/step3.png" width="808" height="590" /></span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong><span id="b24f92cb-0a84-4ca0-95ae-541bc7035faf" class="GINGER_SOFTWARE_mark">InvoiceLineSalesTaxCodeRefListID</span></strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span id="18c36acb-d9fe-41b8-9173-266e437e0fc5" class="GINGER_SOFTWARE_mark">InvoiceLineSalesTaxCodeRefListID</span> is '20000-999022286' and found like this:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Select ListId, Name from QRemote...SalesTaxCode where Name like 'N%'</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/SQLInvoice/step4.png" alt="http://support.flexquarters.com/esupport/newimages/SQLInvoice/step4.png" width="811" height="589" /></span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong><span id="7c64ef3d-1f2a-4900-9bb4-29c02ac6b38a" class="GINGER_SOFTWARE_mark">CustomerRefListID</span></strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span id="6f72d535-3e08-4d5d-831f-0dd516a69900" class="GINGER_SOFTWARE_mark">CustomerRefListID</span> is '160000-933272658' and found like this:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Select ListId, and FullName from QRemote...Customers where FullName like 'Aber%'</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/SQLInvoice/step5.png" alt="http://support.flexquarters.com/esupport/newimages/SQLInvoice/step5.png" width="810" height="589" /></span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong><span id="505d59a2-ea99-4682-a24c-ba3ada0ea829" class="GINGER_SOFTWARE_mark">ARAccountRefListID</span></strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span id="da7e0de9-a47e-4897-b803-9ada8d40581b" class="GINGER_SOFTWARE_mark">ARAccountRefListID</span> is '40000-933270541' and found like this:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Select ListId, and FullName from QRemote...An account where a Name like 'Account%.'</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/SQLInvoice/step6.png" alt="http://support.flexquarters.com/esupport/newimages/SQLInvoice/step6.png" width="807" height="586" /></span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong><span id="bca21bac-07bd-485e-979c-1f1c9149e9d4" class="GINGER_SOFTWARE_mark">ItemSalesTaxRefListID</span></strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span id="283919b1-fdec-4bae-82f3-1af6c5a2c677" class="GINGER_SOFTWARE_mark">ItemSalesTaxRefListID</span> is '2E0000-933272656' and found like this:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Select ListId, Name from QRemote...ItemSalesTax where Name like 'San%'</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/SQLInvoice/step7.png" alt="http://support.flexquarters.com/esupport/newimages/SQLInvoice/step7.png" width="806" height="587" /></span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong><span id="9ddfca49-bb14-4946-9c5b-eceea9839390" class="GINGER_SOFTWARE_mark">CustomerSalesTaxCodeRefListID</span></strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span id="abddc888-82df-49b8-a3ff-8a5d794e388e" class="GINGER_SOFTWARE_mark">CustomerSalesTaxCodeRefListID</span> is '10000-999022286' and found like this:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Select ListId, Name from QRemote...SalesTaxCode where Name like 'T%'</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/SQLInvoice/step8.png" alt="http://support.flexquarters.com/esupport/newimages/SQLInvoice/step8.png" width="811" height="587" /></span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Example of adding InvoiceLine items to an existing Invoice</span></h3>
<p>You can add lines to existing Invoices using SQL Linked Server without any issue. Please refer to the sample query for the same:</p>
<p>Insert&nbsp;into QRemote.InvoiceLine (TxnID, InvoiceLineItemRefListID, InvoiceLineDesc, InvoiceLineRate, InvoiceLineAmount) VALUES ('1B308-1513325705', '320000-1071525597', '11440DECA', 5,5)</p>
<p><strong>OR</strong></p>
<p>Insert openquery(QRemote, 'select TxnID, InvoiceLineItemRefListID, InvoiceLineDesc, InvoiceLineRate, InvoiceLineAmount from InvoiceLine where TxnID=''0''') values ('1B308-1513325705','320000-1071525597', '88880DECA', 5,5)</p>
<p><strong>Note</strong>: In the INSERT statement, a where should be TxnID=''0''. The TxnID=''0'' predicate is used to avoid retrieving data from the remote server, which can result in slower performance.</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to get Bank Reconciliation details using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2650]]></link>
<guid isPermaLink="false"><![CDATA[d8bf84be3800d12f74d8b05e9b89836f]]></guid>
<pubDate><![CDATA[Fri, 05 Jun 2015 09:37:04 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How to get Bank Reconciliation details using QODBC
Problem Description:
 How to get Bank Reconciliation details using QODBCI've not successfully identified any field/flag identifying the bank reconciliation status. Is this information ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - How to get Bank Reconciliation details 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;"> How to get Bank Reconciliation details using QODBC<br /><br />I've not successfully identified any field/flag identifying the bank reconciliation status. Is this information available thru QODBC? Or has it not been made available?<br /><br />I'm building a supplemental (to QuickBooks) bank account management/forecasting application. I want to be able to pull bank reconciliation data from QuickBooks (using QODBC) and be able to identify cleared/not cleared bank account transactions. This would be very useful for a client of mine. It's easy to remove all bank account transacbanks (debits and credits) from the Transaction table, which is very much like a bank statement if you order by date. But I've not been able to determine the CLEARED status of each transaction. Is there any way for me to determine this thru QODBC?<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;">The Bank Reconciliation details are unavailable through the&nbsp;Intuit SDK, so they are unavailable through QODBC.<br /><br />QODBC is an ODBC driver for QuickBooks. It uses the QuickBooks SDK to communicate with QuickBooks, which means if Intuit doesn't expose one feature to the application in SDK, QODBC could not do it either. <br /><br />You can refer ClearedStatus table, which is used to clear checks using QODBC. <br /><br />The "ClearedStatus" table is Insert Only table. It is used for Insert purposes only.<br /><br />You can clear check using QODBC by inserting TxnId &amp; check the status in the "ClearedStatus" table. If you want to clear check using QODBC, Please refer to the below steps:<br /><br />Please open the Check register in QuickBooks &amp; locate the transaction in which you want to update the check status.<br /><br />For Example, I want to update the check status of the Bill Payment:<br /><br />To locate the TxnID of the "BILLPMT" check, I ran the following:<br /><br />SELECT TxnID, AppliedToTxnSeqNo, TxnDate, PayeeEntityRefFullName, Amount FROM BillPaymentCheckLine where RefNumber='294'<br /><br /> </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Bank/step1.png" alt="http://support.flexquarters.com/esupport/newimages/Bank/step1.png" width="887" height="402" /></span></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /><br />Using this TxnID, I can mark the check as cleared by running the following using the INSERT only ClearedStatus table:<br /><br />INSERT INTO ClearedStatus ("TxnID," "ClearedStatus") VALUES ('39D7-1071529831', 'Cleared')<br /><br /></span></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/Bank/step2.png" alt="http://support.flexquarters.com/esupport/newimages/Bank/step2.png" width="887" height="400" /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /><br />BTW: The valid values are: |Cleared|NotCleared|Pending|<br /><br />And the check is now marked as "Cleared" in QuickBooks.<br /><br /></span></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/Bank/step3.png" alt="http://support.flexquarters.com/esupport/newimages/Bank/step3.png" width="715" height="642" /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><br /><br /> </span></p>
<p>&nbsp;</p>
<div id="commentparent">&nbsp;</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] Difference between QODBC for QuickBooks Desktop and Online.]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2647]]></link>
<guid isPermaLink="false"><![CDATA[0b7e926154c1274e8b602ff0d7c133d7]]></guid>
<pubDate><![CDATA[Wed, 06 May 2015 10:20:37 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Difference between QODBC for QuickBooks Desktop and Online.
Table Differences:
 Number of Tables available in 


QODBC DesktopQODBC Online 



150
83




 
List of Tables available in QODBC Desktop
List of Tables available in QODBC Online...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Difference between QODBC for QuickBooks Desktop and Online.</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Table Differences:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> Number of Tables available in </span></p>
<table border="1" cellspacing="0" align="center" bgcolor="#ffffff">
<thead>
<tr><th bgcolor="#c0c0c0"><span style="font-size: 11pt; color: #000000; font-family: Calibri;">QODBC Desktop</span></th><th bgcolor="#c0c0c0"><span style="font-size: 11pt; color: #000000; font-family: Calibri;">QODBC Online </span></th></tr>
</thead>
<tbody align="Center">
<tr valign="TOP">
<td><span style="font-size: 11pt; color: #000000; font-family: Calibri;">150</span></td>
<td><span style="font-size: 11pt; color: #000000; font-family: Calibri;">83</span></td>
</tr>
</tbody>
<tfoot></tfoot>
</table>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;"> <br /></span></span></p>
<p><a href="http://doc.qodbc.com/qodbc/usa/TableList.php?categoryName=" target="_blank">List of Tables available in QODBC Desktop</a></p>
<p><a href="http://doc.qodbc.com/qodbc/online/TableList.php?categoryName=" target="_blank">List of Tables available in QODBC Online</a></p>
<p><a href="https://developer.intuit.com/docs/api/accounting" target="_blank">List of Tables available via API from QuickBooks Online</a></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Report Differences:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;">Number of Reports available in</span></span></p>
<table border="1" cellspacing="0" align="center" bgcolor="#ffffff">
<thead>
<tr><th bgcolor="#c0c0c0"><span style="font-size: 11pt; color: #000000; font-family: Calibri;">QODBC Desktop</span></th><th bgcolor="#c0c0c0"><span style="font-size: 11pt; color: #000000; font-family: Calibri;">QODBC Online </span></th></tr>
</thead>
<tbody align="Center">
<tr valign="TOP">
<td><span style="font-size: 11pt; color: #000000; font-family: Calibri;">93</span></td>
<td><span style="font-size: 11pt; color: #000000; font-family: Calibri;">22</span></td>
</tr>
</tbody>
<tfoot></tfoot>
</table>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;</span></span></p>
<p><a href="http://doc.qodbc.com/qodbc/usa/Reports.php?categoryName=" target="_blank">List of Reports available in QODBC Desktop</a></p>
<p><a href="http://doc.qodbc.com/qodbc/online/Reports.php?categoryName=" target="_blank">List of Reports available in QODBC Online</a></p>
<p><a href="https://developer.intuit.com/docs/0100_accounting/0400_references/reports" target="_blank">List of Reports available via API from QuickBooks Online</a>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Stored Procedure Difference:</span></h3>
<h4><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Stored Procedure which is not working in QODBC for QuickBooks Online:</span></h4>
<table border="1" cellspacing="0" align="center" bgcolor="#ffffff">
<thead>
<tr><th bgcolor="#c0c0c0"><span style="font-size: 11pt; color: #000000; font-family: Calibri;"> Store Procedure Name</span></th></tr>
</thead>
<tbody align="Center">
<tr valign="TOP">
<td><span style="font-size: 11pt; color: #000000; font-family: Calibri;">sp_qbfilename</span></td>
</tr>
<tr valign="TOP">
<td><span style="font-size: 11pt; color: #000000; font-family: Calibri;">sp_batchclear TableName</span></td>
</tr>
<tr valign="TOP">
<td><span style="font-size: 11pt; color: #000000; font-family: Calibri;">sp_batchstart TableName</span></td>
</tr>
<tr valign="TOP">
<td><span style="font-size: 11pt; color: #000000; font-family: Calibri;">sp_batchupdate TableName</span></td>
</tr>
</tbody>
<tfoot></tfoot>
</table>
<p>&nbsp;</p>
<p><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2342" target="_blank">QODBC Desktop Stored Procedures Command-List</a></p>
<p>&nbsp;</p>
<p>Also, Refer</p>
<p><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2715" target="_blank">Detailed Difference between QODBC for QuickBooks Desktop and Online.</a></p>
<h3>&nbsp;</h3>
<p>&nbsp;</p>
<p>Tags: QuickBooks Online, QBO, QODBC Online, difference</p>
<p>&nbsp;</p>
<table class="gstl_50 gssb_c" style="width: 206px; display: none; top: 170px; left: 257px; position: absolute;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="gssb_f">&nbsp;</td>
<td class="gssb_e" style="width: 100%;">&nbsp;</td>
</tr>
</tbody>
</table>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - QRemote Does not consider FQSaveToCache with working with OdbcCommand &amp; Parameters]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2646]]></link>
<guid isPermaLink="false"><![CDATA[f2e43fa3400d826df4195a9ac70dca62]]></guid>
<pubDate><![CDATA[Wed, 06 May 2015 06:53:35 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - QRemote Does not consider FQSaveToCache with working with OdbcCommand &amp; Parameters
Problem Description:
 QRemote Does not consider FQSaveToCache with working with OdbcCommand &amp; Parameters.I have an application that creates Sale...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - QRemote Does not consider FQSaveToCache with working with OdbcCommand &amp; Parameters</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;"> QRemote Does not consider FQSaveToCache with working with OdbcCommand &amp; Parameters.<br /><br />I have an application that creates Sales Orders. This is what I execute for each line item:<br /><br />Running this code against QODBC DSN works well if everything is local - using a 32-bit local DSN and QuickBooks local to the application. The Sales Order appears correct in QuickBooks.<br /><br />Taking the same code and connecting it to a 64-bit QRemote DSN connected to a 32-bit qODBC DSN on another machine (via QRemote Server) does not work.<br /><br />The basic flow is like this:<br /><br />cnQODBC = New OdbcConnection(ConfigurationManager.AppSettings.Item("QuickBooksConnectionString"))<br /><br />cnQODBC.Open()<br /><br />[Repeat for every sales order line item]<br /><br />Dim cmdQODBC As OdbcCommand = New OdbcCommand("insert into SalesOrderLine (CustomerRefListID, TxnDate, SalesOrderLineClassRefListID, TemplateRefListID, RefNumber, " &amp; "SalesOrderLineItemRefListID, SalesOrderLineDesc, SalesOrderLineQuantity, SalesOrderLineRate, SalesOrderLineAmount, " &amp; "CustomFieldSalesOrderLineOther1, FQSaveToCache) values (??, ??, ????????)", cnQODBC)<br /><br />cmdQODBC.Parameters.AddWithValue(", "strCustomerListID)<br /><br />cmdQODBC.Parameters.AddWithValue("", "{d'" &amp; dteInvoiceDate.ToString("yyyy-MM-dd") &amp; "'}")<br /><br />cmdQODBC.Parameters.AddWithValue(", "strLineClassListID)<br /><br />cmdQODBC.Parameters.AddWithValue(", "strTemplateListID)<br /><br />cmdQODBC.Parameters.AddWithValue("", intSalesOrderNumber)<br /><br />cmdQODBC.Parameters.AddWithValue("", strLineItemListID)<br /><br />cmdQODBC.Parameters.AddWithValue(", "strain description)<br /><br />cmdQODBC.Parameters.AddWithValue(", "intQuantity) <br /><br />cmdQODBC.Parameters.AddWithValue(", "dblLineRate) <br /><br />cmdQODBC.Parameters.AddWithValue(", "dblLineAmount) <br /><br />cmdQODBC.ExecuteNonQuery()<br /><br />[End repeat]<br /><br />cnQODBC.Close()<br /><br />cnQODBC = Nothing<br /><br />cmdQODBC.ExecuteNonQuery()</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;"> Integer, double, and long datatype parameter passing in QRemote pass-through string format because of flow QRemote Client --&gt; QRemote Server --&gt; QODBC Datatype conversion create the problem in QODBC and due to this issue occurred.<br /><br />The workaround for this problem is to pass value in string format instead of basic format as in the below example:<br /><br /> <strong> cmdQODBC.Parameters.AddWithValue("", intSalesOrderNumber.ToString()) //cmd.Parameters.AddWithValue("", "3");<br /><br />cmdQODBC.Parameters.AddWithValue("", intQuantity.ToString()) //cmd.Parameters.AddWithValue("", "44.2");<br /><br />cmdQODBC.Parameters.AddWithValue("", dblLineRate.ToString()) // cmd.Parameters.AddWithValue("", "113.4");<br /><br />cmdQODBC.Parameters.AddWithValue("", dblLineAmount.ToString()) //cmd.Parameters.AddWithValue("", "0");<br /><br /> </strong> Instead of <br /><br />cmdQODBC.Parameters.AddWithValue("", intSalesOrderNumber) //cmd.Parameters.AddWithValue("", 3);<br /><br />cmdQODBC.Parameters.AddWithValue("", intQuantity) //cmd.Parameters.AddWithValue("", 44.2);<br /><br />cmdQODBC.Parameters.AddWithValue("", dblLineRate) //cmd.Parameters.AddWithValue("", 113.4);<br /><br />cmdQODBC.Parameters.AddWithValue("", dblLineAmount) //cmd.Parameters.AddWithValue("", 0);</span></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 below instruction 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[[QODBC-Desktop] Troubleshooting - How to use parameters in OPENQUERY]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2644]]></link>
<guid isPermaLink="false"><![CDATA[f35a2bc72dfdc2aae569a0c7370bd7f5]]></guid>
<pubDate><![CDATA[Mon, 04 May 2015 13:58:36 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Problem Description:
 How to use parameters in OPENQUERY 
Solutions:
 OPENQUERY does not accept variables for its arguments. You need to Pass Basic Values as below example:
Select Query:
 DECLARE @TSQL varchar(8000), @ID varchar(25)
SELECT @ID = '19...]]></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;"> How to use parameters in OPENQUERY<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;"> OPENQUERY does not accept variables for its arguments. You need to Pass Basic Values as below example:</span></p>
<h4><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Select Query:</span></h4>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong> DECLARE @TSQL varchar(8000), @ID varchar(25)</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>SELECT @ID = '19650'</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>SELECT @TSQL = 'SELECT * FROM OPENQUERY(QRemote ,''SELECT * FROM ReceivePayment WHERE ReceivePayment.RefNumber = ''''' + @ID + ''''''')'</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>EXEC (@TSQL)</strong></span></p>
<h4><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Update Query:</span></h4>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>DECLARE @TSQL varchar(8000), @ID varchar(25), @CName varchar(25)</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>SELECT @ID = '80000146-1513345553'</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>SELECT @CName = 'New Company'</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>SELECT @TSQL = 'Update OPENQUERY(QRemote ,''SELECT * FROM Customer WHERE Customer.ListID = ''''' + @ID + ''''''')' + 'SET CompanyName = ''' + @CName + ''''</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>EXEC (@TSQL)</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Please refer below link:<br /> <a href="https://support.microsoft.com/en-us/kb/314520"> How to pass a variable to a linked server query </a> <br /><a href="http://stackoverflow.com/questions/3378496/including-parameters-in-openquery">Including parameters in OPENQUERY</a></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to select a record when the value is null]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2640]]></link>
<guid isPermaLink="false"><![CDATA[9a5748a2fbaa6564d05d7f2ae29a9355]]></guid>
<pubDate><![CDATA[Mon, 23 Mar 2015 13:43:36 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How to select a record when the value is null
Problem Description:
 I am trying to run a report that returns ItemInventory where LastReceived is NULL. I have tried in vain to accomplish this. What syntax do you use to select a blank/nu...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - How to select a record when the value is null</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 report that returns ItemInventory where LastReceived is NULL. I have tried in vain to accomplish this. What syntax do you use to select a blank/null date, or is there a special function for this? </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;"> You can select a blank/null date using "IS NULL" in your query. <br /><br />For Example below query will return a row whose InventoryDate is blank or null:<br /><br />SELECT * FROM ItemInventory where InventoryDate IS NULL</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/ISNULL/step1.png" alt="http://support.flexquarters.com/esupport/newimages/ISNULL/step1.png" width="673" height="373" /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;"><br />In the same way, you can use "IS NOT NULL" in your query. <br /><br />For Example below query will return a row whose InventoryDate is not blank or null:<br /><br />SELECT * FROM ItemInventory where InventoryDate IS NOT NULL</span></span>&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/ISNULL/step2.png" alt="http://support.flexquarters.com/esupport/newimages/ISNULL/step2.png" width="673" height="373" /><br /></span></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</strong> the 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 specifically 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 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 - Invoice RefNumber FAQ]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2632]]></link>
<guid isPermaLink="false"><![CDATA[75455e062929d32a333868084286bb68]]></guid>
<pubDate><![CDATA[Mon, 02 Mar 2015 12:20:49 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Invoice RefNumber FAQ
Problem Description:
 I have the invoice number (RefNumber) from my table outside QuickBooks. But if a QuickBooks user creates invoices directly in QuickBooks, then QuickBooks keeps new incrementing invoices autom...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Invoice RefNumber FAQ</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 the invoice number (RefNumber) from my table outside QuickBooks. But if a QuickBooks user creates invoices directly in QuickBooks, then QuickBooks keeps new incrementing invoices automatically, and the next invoice I create using my outside table will be incorrect.<br /><br />I need to replicate what QuickBooks does in determining the following QuickBooks invoice number. What do you recommend?<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;"> While inserting a new invoice from QODBC, if you do not pass RefNumber, QuickBooks will automatically manage and assign a RefNumber to the newly inserted invoice.<br /><br />If you would like to specify the RefNumber, and RefNumber is numeric, it should be easy to sync up. Just get the max RefNumber from the Invoice table( of the current year), add 1 to it, and specify it in the insert statement.<br /> <br /><br /> </span></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;"> How do I Auto increment the Ref Number for the Invoice?<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;"> While inserting a new invoice from QODBC, if you do not pass RefNumber, QuickBooks will automatically increment and assign a RefNumber to the newly inserted invoice.<br /><br />For example, if the RefNumber of the last Invoice is 1111, then QuickBooks will automatically assign 1112 as a RefNumber for the newly created invoice.<br /> <br /><br /> </span></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;"> How do I Get max and insert RefNumber for the Invoice?<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;"> You can get the max RefNumber for Invoice by using the below query &amp; add 1 to the result and can create a new invoice:<br /><br />SELECT Max(RefNumber) FROM InvoiceLine &nbsp;</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/InvoiceFAQ/step1.PNG" alt="http://support.flexquarters.com/esupport/newimages/InvoiceFAQ/step1.PNG" width="641" height="402" /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">We got 2581 as the max RefNumber. Now we are creating the new invoice with RefNumber 2582. <br /><br />INSERT INTO InvoiceLine (CustomerRefListID, RefNumber, InvoiceLineItemRefListID, InvoiceLineDesc, InvoiceLineRate, InvoiceLineAmount, InvoiceLineSalesTaxCodeRefListID, FQSaveToCache) VALUES ('620000-1071526513', '<strong>2582</strong>', '240000-933272656', 'POWER TRAK-2000', 200.00000, 200.00, '20000-999022286',0)</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;"> What happens If I use the same RefNumber for Invoice creation?<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;"> QuickBooks is allowing duplicate RefNumber. So when you use the same RefNumber for Invoice creation. QuickBooks will create an invoice with a duplicate RefNumber/<br /><br />For example, if the RefNumber of the last Invoice is 1111, then QuickBooks will automatically assign 1112 as a RefNumber for the newly created invoice.<br /><br /><br /> </span></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;"> How do I Auto Increment Alphanumeric RefNumber for Invoice?<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;"> First, create any Invoice from QuickBooks UI &amp; assign the alphanumeric RefNumber "R0001T". Now create a new Invoice from QODBC &amp; do not pass RefNumber. QuickBooks will automatically increment and assign a RefNumber (i.e., "R0002T") to the newly inserted invoice.<br /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Online] Troubleshooting - How to create a blank Invoice in QuickBooks Online using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2629]]></link>
<guid isPermaLink="false"><![CDATA[8cff9bf6694dccfc3b6a613d05d51d16]]></guid>
<pubDate><![CDATA[Mon, 02 Mar 2015 12:09:53 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How to create a blank Invoice in QuickBooks Online using QODBC
Problem Description:
 How do I create a note (or a blank line) on the invoice? If I do it the same way that I do it using QODBC for QuickBooks, I get an error :Error sendin...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - How to create a blank Invoice in QuickBooks Online 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;"> How do I create a note (or a blank line) on the invoice? If I do it the same way that I do it using QODBC for QuickBooks, I get an error :<br /><br />Error sending txn to QB: 2020: QuickBooks message: Required param missing. We need to supply the required value for the API. QuickBooks message: Required parameter Line.SalesItemLineDetail is missing in the request.<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 can create a blank invoice from QODBC Online by using below sample query:<br /><br />INSERT INTO "InvoiceLine" (CustomerRefFullName,"InvoiceLineItemRefFullName", RefNumber) VALUES ('Aadi Vanhorn','Test','Blank001' )<br /><br />You must create an item without providing a price/rate in the Item module. Then it would be best if you delivered ItemName in your query. In this example, I have created the Item "Test" &amp; use it in the question. You can use the RefNumber column to insert InvoiceNumber. If you don't want to provide InvoiceNumber, then QuickBooks Online automatically adds the Invoice number to the invoice. Please see the below query without including RefNumber: <br /><br />INSERT INTO "InvoiceLine" (CustomerRefFullName,"InvoiceLineItemRefFullName") VALUES ('Aadi Vanhorn','Test')</span></p>
<h3>&nbsp;</h3>
<p>&nbsp;</p>
<p>Tags: QuickBooks Online, QBO, Create Blank Invoice, QODBC Online</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Getting [QODBC] Not Supported error when try to modify TxnDeleted table]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2627]]></link>
<guid isPermaLink="false"><![CDATA[4de81d9105c85bca6e6e4666e6dd536a]]></guid>
<pubDate><![CDATA[Mon, 02 Mar 2015 11:59:36 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Getting [QODBC] Not Supported error when trying to modify the TxnDeleted table
Problem Description:
I am trying to modify the TxnDeleted table from QuickBooks in QODBC but getting the "[QODBC] Not Supported" error.&nbsp;
&nbsp;

&nb...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Getting [QODBC] Not Supported error when trying to modify the TxnDeleted table</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 modify the TxnDeleted table from QuickBooks in QODBC but getting the "[QODBC] Not Supported" error.&nbsp;</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/TxnDeleted/step1.png" alt="http://support.flexquarters.com/esupport/newimages/TxnDeleted/step1.png" width="642" height="399" /><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;"> The TxnDeleted table is the read-only table. You can't modify/delete its content. <br /><br />The insert/Update/Delete feature in the TxnDeleted table is unavailable through the Intuit SDK, so they are unavailable through QODBC.<br /><br />QODBC is an ODBC driver for QuickBooks. It uses the QuickBooks SDK to communicate with QuickBooks, which means if Intuit doesn't expose one feature to the application in SDK, QODBC could not do it either. &nbsp;&nbsp;<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 alias in MS Query
Problem Description:
 I am getting the below error message when trying to SELECT data fields AS Alias, the statement runs fine otherwise.[sql syntax error] Expected lexical element not found:= Please see th...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Cannot use 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 below 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 Tool, MS Access. But I am facing the 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 some 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 below mentioned link 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 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 - 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 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: <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 - How to get Alt.Email1,2 &amp; CC Email fields from the Customer table]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2614]]></link>
<guid isPermaLink="false"><![CDATA[5df07ecf4cea616e3eb384a9be3511bb]]></guid>
<pubDate><![CDATA[Tue, 16 Dec 2014 10:03:31 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How to get Alt.Email1,2 &amp; CC Email fields from a the Customer table
Problem Description:
How do I access the alternate email address 1 and 2 and the cc email fields? I don't see them at the customer table. 
Solutions:
 You can ge...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - How to get Alt.Email1,2 &amp; CC Email fields from a the Customer table</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 do I access the alternate email address 1 and 2 and the cc email fields? I don't see them at the customer table.<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 can get CC Email details from the "Cc" field in the Customer &amp; Entity table.<br /><br />The Alt Email 1 and 2 field is not available through the Intuit SDK, so they are not available through QODBC.<br /><br />QODBC is an ODBC driver for QuickBooks. It uses the QuickBooks SDK to communicate with QuickBooks, which means if Intuit doesn't expose one feature to the application in SDK, QODBC could not do it either.<br /></span></p>
<div id="ginger-floatingG-container">&nbsp;</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - INTERNAL ERROR WHEN PROCESSING THE QBXML REQUEST]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2608]]></link>
<guid isPermaLink="false"><![CDATA[d756d3d2b9dac72449a6a6926534558a]]></guid>
<pubDate><![CDATA[Mon, 10 Nov 2014 14:46:12 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - INTERNAL ERROR WHEN PROCESSING THE QBXML REQUEST
Problem Description:
I have QuickBooks 2014 version &amp; I am using QODBC's latest version. I have a problem with querying the customer table using QODBC.&nbsp;QODBC driver consistently...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - INTERNAL ERROR WHEN PROCESSING THE QBXML REQUEST</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 QuickBooks 2014 version &amp; I am using QODBC's latest version. I have a problem with querying the customer table using QODBC.&nbsp;<br /><br />QODBC driver consistently gets stuck on "Find Next Record" at record #9000. I have tried the following:&nbsp;<br /><br />- Reset the optimizer file<br /><br />- Rebuild the QuickBooks company file<br /><br />- sp_optimizefullsync Customer: this crashes QuickBooks or does not complete correctly. There are still records missing from the Customer table that appear in QuickBooks.<br /><br />- Query customer table using UNOPTIMIZED keyword. Unoptimized hangs at about record 9000 and does not return the Customer<br /><br />On QuickBooks SDK logs, I noticed the below error:<br /><br />20140923.175608 E 3888 QBSDKProcessRequest *** INTERNAL ERROR WHEN PROCESSING THE QBXML REQUEST ***.</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;">There might be some internal error that occurred during the processing request. To resolve this error, you need to get in touch with Intuit.<br /><br />Please restart QuickBooks &amp; try again, as you are saying that the query is stuck on #9000. There might be some issue with the company file. Please test the same on another company file or a sample company file to see if the problem is related to the company file.<br /><br />Also, try changing the Iterator value to 100 on QODBC Setup Screen--Advanced Tab.<br /><br />If you are still facing the same error, there might be an issue with your company file that would require repairing the company file &amp; you need to get in touch with Intuit.</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Error 3250 - This feature is not enabled or not available in this version of QuickBooks.]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2607]]></link>
<guid isPermaLink="false"><![CDATA[53c6de78244e9f528eb3e1cda69699bb]]></guid>
<pubDate><![CDATA[Mon, 10 Nov 2014 14:44:47 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting: Error 3250 - This feature is not enabled or not available in this version of QuickBooks.
Problem Description:
 I am getting the error "Error 3250 - This feature is not enabled or not available in this version of QuickBooks." while I am ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting: Error 3250 - This feature is not enabled or not available in this version of QuickBooks.</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 error "Error 3250 - This feature is not enabled or not available in this version of QuickBooks." while I am trying to insert an Invoice in QuickBooks using QODBC. Below is my insert statement:<br /><br />INSERT INTO InvoiceLine (CustomerRefListID, RefNumber, InvoiceLineItemRefListID, InvoiceLineDesc, InvoiceLineRate, InvoiceLineAmount, InvoiceLineGroupItemGroupRefListID, InvoiceLineGroupQuantity, InvoiceLineSalesTaxCodeRefListID, InvoiceLineLotNumber, FQSaveToCache) VALUES ('670000-1071517519', '91047', '320000-1071525597', 'POWER TRAK-2000', 200.00000, 200.00,'300000-933272656',11, '20000-999022286', 'L123',0)<br /></span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Error 3250/step1.png" alt="http://support.flexquarters.com/esupport/newimages/Error 3250/Step1.png" width="972" height="405" /></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">QuickBooks does not allow to use LotNumber when Advanced Inventory is Turned Off. QuickBooks SDK will throw the error "This feature is not enabled or not available in this version of QuickBooks."<br /><br />The Error message will depend on the operation you are performing.<br /><br />In this case, you need to enable the Advanced Inventory module &amp; try again.<br /><br />There might be other possibilities for this error. Please refer below possibilities:<br /><br />If the Units of Measure feature is not enabled &amp; you are trying to use it in your query.<br /><br />If the Class feature is not enabled &amp; you are trying to use it in your query. The QuickBooks company file you are using is not set to allow assigning classes to names. This preference must be turned on to include the ClassRef section of your query.<br /><br />To resolve this error, You need to enable the feature you are using from QuickBooks &amp; try again. &nbsp;&nbsp;</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - ERROR [42S00] [QODBC] Insert value must be a simple value]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2606]]></link>
<guid isPermaLink="false"><![CDATA[a431d70133ef6cf688bc4f6093922b48]]></guid>
<pubDate><![CDATA[Mon, 10 Nov 2014 14:41:41 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - ERROR [42S00] [QODBC] Insert value must be a simple value
Problem Description 1:
We have a customer trying to import a credit memo from our database into QuickBooks using a vb.net program. They are getting the following error: ERROR [4...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;"><span id="67e313e4-33b2-413f-9cee-ea6eef1aa183" class="GINGER_SOFTWARE_mark">Troubleshooting</span> - ERROR [42S00] [QODBC] Insert value must be a simple value</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;"><span id="2f305488-ea52-4901-993a-de7840dd603d" class="GINGER_SOFTWARE_mark"><span id="cdf6e950-3226-4cd0-ba6a-fbfc3a25b6b2" class="GINGER_SOFTWARE_mark">We</span></span> have a customer trying to import a credit memo from our database into QuickBooks using a vb.net program. They are getting the following error: ERROR [42S00] [QODBC] Insert value must be a simple value. We have other customers that can import credit memos, and I have compared the imported data and cannot find any difference in the data format. Can you give me an idea of what to look for? <br /><br /> </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;">You are getting the error " [QODBC] Insert value must be a simple value" because you are not passing the value in the correct format. The VB code generates this error. It is not a QODBC error.<br /><br />Please verify your insert statement &amp; try again. Please refer below-mentioned link <span id="f0ef706d-a76d-4e59-b902-1720b7c3129c" class="GINGER_SOFTWARE_mark"><span id="8b6615aa-d742-40fa-8cfa-cae1f75a03e3" class="GINGER_SOFTWARE_mark">to</span></span>&nbsp;a sample VB code:<br /><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/506/57/examples-of-how-to-use-qodbc-via-visual-basic">Examples of How to Use QODBC via Visual Basic</a><br /><br />Please refer to the below-mentioned article for creating a credit memo:<br /><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2068/50/how-to-create-credit-memos">How to create Credit Memos</a><br /><br /> </span></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;">When I go to insert a Customer, I receive an error saying [QODBC] Insert value must be a simple value. I need to know what I am doing wrong to insert a new customer. <br /><br />Please refer below code which I am using:<br /><br />Public Sub InsertNewCustomers<span id="d5eafa60-3a56-4323-842e-c2e37e9ea18b" class="GINGER_SOFTWARE_mark"><span id="4014c3bc-59da-4959-a2b0-faa3bf1d1208" class="GINGER_SOFTWARE_mark">(</span></span>)<br /><br />Dim name As String<br /><br />Dim <span id="e2b82a5d-fefb-475c-94e1-4f4ace002bb4" class="GINGER_SOFTWARE_mark"><span id="ab973260-7da4-449b-8670-1cbc859396e7" class="GINGER_SOFTWARE_mark">firstName</span></span> As String<br /><br />Dim <span id="5dfb6cbb-a49c-4b90-9604-5136406a3556" class="GINGER_SOFTWARE_mark"><span id="fc56e36d-dcd7-48d3-ae42-795ff0b20c86" class="GINGER_SOFTWARE_mark">lastName</span></span> As String<br /><br />Dim <span id="5470e68c-93c0-44f1-8b8b-d0fea7b79678" class="GINGER_SOFTWARE_mark"><span id="f3f9923e-86f1-42e3-8f4c-cd4174dcb42a" class="GINGER_SOFTWARE_mark">companyName</span></span> As String<br /><br />Dim contact As String<br /><br />Dim billAddressAddr1 As String<br /><br />Dim billAddressAddr2 As String<br /><br />Dim billAddressAddr3 As String<br /><br />Dim <span id="a00da066-14bf-4fdc-82dd-6cab8446716a" class="GINGER_SOFTWARE_mark">billAddressCity</span> As String<br /><br />Dim <span id="03e500db-fbee-47f5-b12e-ea94bf26d0d7" class="GINGER_SOFTWARE_mark">billAddressState</span> As String<br /><br />Dim address postal code&nbsp;As String<br /><br />Dim phone As String<br /><br />Dim fax As String<br /><br />Dim email As String<br /><br />'Testing to Insert, remove before going LIVE!!<span id="017a9ef0-ffce-41e6-9440-b553c0377e64" class="GINGER_SOFTWARE_mark">!</span>*************************************************************************************************<br /><br /> <span id="9a4613f3-3ebf-4e34-8d07-7524e60711c6" class="GINGER_SOFTWARE_mark">name</span> = "ABC XYZ"<br /><br /> <span id="9696c9c9-d8d2-4924-99ad-56bd7fbefeae" class="GINGER_SOFTWARE_mark">firstName</span> = "ABC"<br /><br /> <span id="a11e334b-480a-437b-86d2-28edbb24b379" class="GINGER_SOFTWARE_mark">lastName</span> = "XYZ"<br /><br /> <span id="89905a99-1232-4ee9-9352-ba5bb28bfc91" class="GINGER_SOFTWARE_mark">companyName</span> = "Test Company"<br /><br /> <span id="80b92127-af1b-4fcd-a071-db724548d1bc" class="GINGER_SOFTWARE_mark">contact</span> = "Jerry"<br /><br />billAddressAddr1 = "503 Test Club"<br /><br />billAddressAddr2 = ""<br /><br />billAddressAddr3 = ""<br /><br /> <span id="add237f6-6298-4b1f-a98b-3d424c9b2131" class="GINGER_SOFTWARE_mark">billAddressCity</span> = "Test City"<br /><br /> <span id="9638a3dd-13e0-4ce6-87d2-e0ef787d918d" class="GINGER_SOFTWARE_mark">billAddressState</span> = "OK"<br /><br /> <span id="0f8ec6ab-e91e-4afe-8582-489c1435e429" class="GINGER_SOFTWARE_mark">addressPostalCode</span> = "11644"<br /><br /> <span id="6d86bd9a-dcee-4d3d-8163-59288a4734be" class="GINGER_SOFTWARE_mark">phone</span> = "111-111-1111"<br /><br /> <span id="83b40e7b-34a6-424f-9cf0-18f49b5bba61" class="GINGER_SOFTWARE_mark">fax</span> = ""<br /><br /> <span id="146bbc6f-1a6a-4786-90ef-75f04dcb406a" class="GINGER_SOFTWARE_mark">email</span> = ""<br /><br />'*********************************************************************************************************************<br /><br />Dim conn As ADODB<span id="fb28eb49-90e2-4daf-8178-6df337942015" class="GINGER_SOFTWARE_mark">.</span>Connection<br /><br />Dim <span id="50ad1d73-3d6f-428c-9428-109b73882579" class="GINGER_SOFTWARE_mark">rs</span> As ADODB<span id="604d36d7-1c3b-42b9-b47e-81efce50fa2d" class="GINGER_SOFTWARE_mark">.</span>Recordset<br /><br /> <span id="42f7f488-50d5-4d10-9d8e-cd386360b157" class="GINGER_SOFTWARE_mark">conn</span> = New ADODB<span id="dc6b040e-a095-472a-b14c-252309ca23c5" class="GINGER_SOFTWARE_mark">.</span>Connection<br /><br /> <span id="b5179fc0-33fd-4117-9677-c8ca454f2b64" class="GINGER_SOFTWARE_mark">conn</span><span id="c81d4916-35bd-40c9-9413-781344c3d31e" class="GINGER_SOFTWARE_mark">.</span>ConnectionString = "DSN=Quickbooks Data<span id="f260fe7f-7f2c-49df-954b-c2bb5ef6e214" class="GINGER_SOFTWARE_mark">;</span>OLE DB Services=-2;"<br /><br /> <span id="9d00a778-33c0-4052-89bb-5fb882bf442c" class="GINGER_SOFTWARE_mark">conn</span><span id="d3f20649-38b6-4304-8604-8fb9e6e129e8" class="GINGER_SOFTWARE_mark">.</span>Open<span id="7bdd4ada-90cb-4420-ae48-818657ba1cce" class="GINGER_SOFTWARE_mark">(</span>)<br /><br />Try<br /><br />' Create the new record.<br /><br /> <span id="8ce52b64-1bb2-410d-a63c-6289859932d1" class="GINGER_SOFTWARE_mark">rs</span> = conn<span id="56c9d4e9-a7aa-4ce6-a3f8-ad6a49331077" class="GINGER_SOFTWARE_mark">.</span>Execute<span id="495b31d6-a0f5-406c-9821-37f26faa7e93" class="GINGER_SOFTWARE_mark">( </span>_<br /><br />"INSERT INTO customer(name, firstname, lastname, companyName, contact, BillAddressAddr1, BillAddressAddr2, BillAddressAddr3, BillAddressCity, BillAddressState, BillAddressPostalCode, Phone, Fax, Email)VALUES(name, firstname, lastname, companyName, contact, billAddressAddr1, billAddressAddr2, billAddressAddr3, billAddressCity, billAddressState, billAddressPostalCode, phone, fax, email)")<br /><br /> <span id="eb1f360f-52e1-413b-a90b-3d106d62b25d" class="GINGER_SOFTWARE_mark">LogEntry</span><span id="316bb45a-d892-49d7-af67-9a62d201204f" class="GINGER_SOFTWARE_mark">(</span>"New Customer Added to QuickBooks")<br /><br />Catch e As an Exception<br /><br />MsgBox(e.ToString)<br /><br />End Try<br /><br />' Close the database.<br /><br />rs.Close()<br /><br />rs = Nothing<br /><br />conn.Close()<br /><br />conn = Nothing<br /><br />'*********************************************************************************************************************<br /><br />End Sub<br /><br /> </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;">You are getting the error " [QODBC] Insert value must be a simple value" because you are not passing the value in the correct format. The VBA code generates this error. It is not a QODBC error.<br /><br />There is a problem with your Insert statement. You cannot pass the value directly. Your insert statement should be like as below.<br /><br />INSERT INTO customer(Name,FirstName,LastName,CompanyName,Contact,BillAddressAddr1,BillAddressAddr2,BillAddressAddr3,BillAddressCity,BillAddressState,BillAddressPostalCode,Phone,Fax,Email) " &amp; _<br /><br />" VALUES( '" + name + "','" + firstName + "','" + lastName + "','" + companyName + "','" + contact + "','" + billAddressAddr1 + "','" + billAddressAddr2 + "','" + billAddressAddr3 + "','" + billAddressCity + "','" + billAddressState + "','" + billAddressPostalCode + "','" + phone + "','" + fax + "','" + email + "')<br /><br />Please refer to the updated code &amp; try to insert the record with this code.<br /><br />Public Sub InsertNewCustomers<span id="009d05bd-12e8-48fc-a914-5f7c1c22cf17" class="GINGER_SOFTWARE_mark"><span id="b93eea20-dc98-4e71-a07c-83fae6c7d0b3" class="GINGER_SOFTWARE_mark">(</span></span>)<br /><br />Dim name As String<br /><br />Dim <span id="8b01a149-8eca-445a-ba5c-984f65b67a84" class="GINGER_SOFTWARE_mark"><span id="134008c1-7f62-480a-b804-f52a305446a7" class="GINGER_SOFTWARE_mark">firstName</span></span> As String<br /><br />Dim <span id="3cf69305-7871-4fe5-a54c-3bb76b379d24" class="GINGER_SOFTWARE_mark"><span id="ec31a3c1-d58f-4d95-9bc8-7dd61fc68aad" class="GINGER_SOFTWARE_mark">lastName</span></span> As String<br /><br />Dim <span id="e90e0735-041b-4413-8876-5577c519dbf1" class="GINGER_SOFTWARE_mark"><span id="c48e5663-f6ae-4f23-af77-9e544df91e6e" class="GINGER_SOFTWARE_mark">companyName</span></span> As String<br /><br />Dim contact As String<br /><br />Dim billAddressAddr1 As String<br /><br />Dim billAddressAddr2 As String<br /><br />Dim billAddressAddr3 As String<br /><br />Dim <span id="5da4b2c7-b28a-40c2-809d-ce688756458f" class="GINGER_SOFTWARE_mark">billAddressCity</span> As String<br /><br />Dim <span id="751a376e-7f51-4d4c-8ed1-a5e2188ed7ed" class="GINGER_SOFTWARE_mark">billAddressState</span> As String<br /><br />Dim <span id="cdec2226-c32a-4da3-b057-5b5c412c9d37" class="GINGER_SOFTWARE_mark">addressPostalCode</span> As String<br /><br />Dim phone As String<br /><br />Dim fax As String<br /><br />Dim email As String<br /><br />'Testing to Insert, remove before going LIVE!!<span id="f928c858-29ca-41b5-9f11-97acd031a396" class="GINGER_SOFTWARE_mark">!</span>*************************************************************************************************<br /><br /> <span id="0ae542b6-ec7e-4953-8648-6a1a23ae54c3" class="GINGER_SOFTWARE_mark">name</span> = "ABC XYZ"<br /><br /> <span id="c4ce2b6d-bc8a-4f2a-a517-7cc23fa1482c" class="GINGER_SOFTWARE_mark">firstName</span> = "ABC"<br /><br /> <span id="63e17a60-884c-4d74-a4b1-3795cd127e40" class="GINGER_SOFTWARE_mark">lastName</span> = "XYZ"<br /><br /> <span id="fad0e4ea-3189-4fa2-8d96-e53fd14600da" class="GINGER_SOFTWARE_mark">companyName</span> = "Test Company"<br /><br /> <span id="16e5569b-5059-4309-9b3d-29e276084db1" class="GINGER_SOFTWARE_mark">contact</span> = "Jerry"<br /><br />billAddressAddr1 = "503 Test Club"<br /><br />billAddressAddr2 = ""<br /><br />billAddressAddr3 = ""<br /><br /> <span id="83169149-f42b-4a5f-b14b-87503b8586aa" class="GINGER_SOFTWARE_mark">billAddressCity</span> = "Test City"<br /><br /> <span id="70a9367a-ed51-4818-aa73-6242674a9ef5" class="GINGER_SOFTWARE_mark">billAddressState</span> = "OK"<br /><br /> <span id="f8c612b5-004d-4baa-9bd0-7d9298ab6e6e" class="GINGER_SOFTWARE_mark">addressPostalCode</span> = "11644"<br /><br /> <span id="9c83284a-b609-4a75-a476-b1cf4be92aec" class="GINGER_SOFTWARE_mark">phone</span> = "111-111-1111"<br /><br /> <span id="658a6373-a073-4cb4-9faf-79c0fc2abf3e" class="GINGER_SOFTWARE_mark">fax</span> = ""<br /><br /> <span id="79d0c5a2-b040-4a07-b557-995a45d73d5b" class="GINGER_SOFTWARE_mark">email</span> = ""<br /><br />'*********************************************************************************************************************<br /><br />Dim conn As ADODB<span id="84d5fcc2-fdf0-4f48-a67f-a01b602b1718" class="GINGER_SOFTWARE_mark">.</span>Connection<br /><br />Dim <span id="53d27950-c8d1-4238-ae90-a8541709a3ad" class="GINGER_SOFTWARE_mark">rs</span> As ADODB<span id="4b615568-2985-4b51-a959-de3e383064f6" class="GINGER_SOFTWARE_mark">.</span>Recordset<br /><br /> <span id="a5efd808-925e-4b14-9345-2e83f2095e21" class="GINGER_SOFTWARE_mark">conn</span> = New ADODB<span id="0b1c5c9f-118d-4d1d-9f05-32ee845d4932" class="GINGER_SOFTWARE_mark">.</span>Connection<br /><br /> <span id="61d3e034-da6e-45d6-9b3d-49c42750ea60" class="GINGER_SOFTWARE_mark">conn</span><span id="dec77374-5f21-4699-ad97-dda4ae93110b" class="GINGER_SOFTWARE_mark">.</span>ConnectionString = "DSN=Quickbooks Data<span id="eac56e34-02d4-41dd-985f-479f8c9c330d" class="GINGER_SOFTWARE_mark">;</span>OLE DB Services=-2;"<br /><br /> <span id="14bd0469-aff8-47ec-be8e-e076307ca13b" class="GINGER_SOFTWARE_mark">conn</span><span id="ff326b4e-e579-4b8f-bd05-6457b27a6a81" class="GINGER_SOFTWARE_mark">.</span>Open<span id="5790cee1-7085-4a27-a8c7-5ce68192e868" class="GINGER_SOFTWARE_mark">(</span>)<br /><br />Try<br /><br />' Create the new record.<br /><br /> <span id="c18b793a-57f1-46dd-8110-2454826939eb" class="GINGER_SOFTWARE_mark">rs</span> = conn<span id="84a10540-c02e-4c2d-a76c-6f20e70a3355" class="GINGER_SOFTWARE_mark">.</span>Execute<span id="c9aabe28-866d-46be-9502-f610eef8a767" class="GINGER_SOFTWARE_mark">( </span>_<br /><br />sSQL = "INSERT INTO customer(Name,FirstName,LastName,CompanyName,Contact,BillAddressAddr1,BillAddressAddr2,BillAddressAddr3,BillAddressCity,BillAddressState,BillAddressPostalCode,Phone,Fax,Email) " &amp; _<br /><br />" VALUES( '" + name + "','" + firstName + "','" + lastName + "','" + companyName + "','" + contact + "','" + billAddressAddr1 + "','" + billAddressAddr2 + "','" + billAddressAddr3 + "','" + billAddressCity + "','" + billAddressState + "','" + billAddressPostalCode + "','" + phone + "','" + fax + "','" + email + "')"<br /><br />Set conn = CreateObject("ADODB.Connection")<br /><br />Set rs = CreateObject("ADODB.Recordset")<br /><br />conn.Open sConnectString<br /><br />' Create a new record.<br /><br />rs = conn.Execute(sSQL)<br /><br />sMsg = sMsg &amp; "Record Added!!!"<br /><br />MsgBox msg<br /><br />' Close the database.<br /><br />Set rs = Nothing<br /><br />Set conn = Nothing<br /><br />'*********************************************************************************************************************<br /><br />End Sub<br /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Cannot create a new table using QODBC / Cannot add a new field to the QODBC table]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2602]]></link>
<guid isPermaLink="false"><![CDATA[6403675579f6114559c90de0014cd3d6]]></guid>
<pubDate><![CDATA[Mon, 10 Nov 2014 14:21:37 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting -&nbsp;Cannot create a new table using QODBC / Cannot add a new field to the QODBC table
Problem Description:
 I'm trying to create a new table with VB Demo or QODBC Test Tool.
Can you send me a sample query to do this? 
Solutions:
QO...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;"><span id="f964c0bd-d634-4d7e-98a8-9d34508d2f5e" class="GINGER_SOFTWARE_mark">Troubleshooting</span> -&nbsp;Cannot create a new table using QODBC / Cannot add a new field to the QODBC table</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'm trying to create a new table with <strong>VB Demo</strong> or <strong>QODBC Test Tool</strong>.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Can you send me a sample query to do 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;">QODBC is an ODBC driver. Please remember that QODBC is not a database but rather a translation tool. QODBC acts as a 'wrapper' around the Intuit SDK so customers can finally get at their QuickBooks data using standard database tools; </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">You cannot create a new table from <strong>VB Demo</strong> or <strong>QODBC Test Tool</strong> because QODBC is just reading and writing to the QuickBooks Company file via the QuickBooks SDK. QuickBooks SDK provides data in XML format, and QODBC converts it to a table format.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">What you are trying to do is a new table in the QuickBooks Company file, which is not supported. Thus, you cannot create/drop/alter table(s) from the&nbsp;<strong>VB Demo</strong> or <strong>QODBC Test Tool</strong>.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Keywords:&nbsp;adding in a column, adding in a table, how to add a new table, how to add a new column<br /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Using ClassRefListID when Inserting Invoice lines]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2594]]></link>
<guid isPermaLink="false"><![CDATA[ce758408f6ef98d7c7a7b786eca7b3a8]]></guid>
<pubDate><![CDATA[Tue, 05 Aug 2014 14:03:12 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Problem Description:
When inserting an invoice via a looping SQL procedure, I have invoice lines (InvoiceLine table) items that can potentially be assigned to varying classes. Using the ClassRefListID field, I class the lines accordingly and do not addre...]]></description>
<content:encoded><![CDATA[<h3>Problem Description:</h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">When inserting an invoice via a looping SQL procedure, I have invoice lines (InvoiceLine table) items that can potentially be assigned to varying classes. Using the ClassRefListID field, I class the lines accordingly and do not address the ClassRefListID in the main invoice (header/parent) table. When I examine the invoice in QuickBooks, it seems that ALL invoice line items have been forced to the SAME class (it looks like the class I last defined in the last child InvoiceLine item). I need to insert invoices with lines pointing to DIFFERENT courses, as I can manually do so in QuickBooks. Is this possible using QODBC????</span></p>
<h3>Solution:</h3>
<p>You are correct. When you create or add <span id="60ee7ee7-8a81-4557-a583-caf6b548232d" class="GINGER_SOFTWARE_mark"><span id="8e725fb1-3abb-44f7-a497-3cb483c14dd8" class="GINGER_SOFTWARE_mark">InvoiceLine</span></span>, QODBC will always use the last class referenced in the invoice (if applicable). For example, this three-line invoice:</p>
<p><strong>First Line </strong></p>
<p>INSERT INTO "InvoiceLine" ("CustomerRefListID," "ClassRefListID," "RefNumber," "InvoiceLineItemRefListID," "InvoiceLineDesc," "InvoiceLineRate," "InvoiceLineAmount," "InvoiceLineSalesTaxCodeRefListID," "FQSaveToCache") VALUES ('4C0000-1040154668', '60001-1019495266', 'QODBCClass1', '670004-1044572237', 'Building <span id="1728bf24-662d-443e-b2a0-c9c3d35b5dc3" class="GINGER_SOFTWARE_mark"><span id="3e378895-a130-4665-b361-519d5b6bcdbb" class="GINGER_SOFTWARE_mark">permit</span></span> Additional Room,' 100.00000, 100.00, '10000-1011136881', 1)</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2594/Q1.png" alt="" /></p>
<p>&nbsp;</p>
<p><strong><br /> <strong>Note:</strong>&nbsp;</strong>&nbsp;<a href="https://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2981" target="_blank">QODBC Support Wizard</a> is used only to test QODBC SQL queries and is not a development tool.</p>
<p>&nbsp;</p>
<p><strong>Second Line </strong></p>
<p>INSERT INTO "InvoiceLine" ("CustomerRefListID," "ClassRefListID," "RefNumber," "InvoiceLineItemRefListID," "InvoiceLineDesc," "InvoiceLineRate," "InvoiceLineAmount," "InvoiceLineSalesTaxCodeRefListID," "FQSaveToCache") VALUES ('4C0000-1040154668', '80001-1026828072', 'QODBCClass1', '670004-1044572237', 'Bin Permit Renovations,' 200.00000, 200.00, '10000-1011136881', 1)</p>
<p>&nbsp;</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2594/Q2.png" alt="" /></p>
<p><strong>Third Line </strong></p>
<p>INSERT INTO "InvoiceLine" ("CustomerRefListID," "RefNumber," "InvoiceLineItemRefListID," "InvoiceLineDesc," "InvoiceLineRate," "InvoiceLineAmount," "InvoiceLineSalesTaxCodeRefListID," "FQSaveToCache") VALUES ('4C0000-1040154668', 'QODBCClass1', '670004-1044572237', 'Less Council Rebate,' -50.00000, -50.00, '10000-1011136881', 0)</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2594/Q3.png" alt="" /></p>
<p>&nbsp;</p>
<p>Incorrectly appears in QuickBooks with all three invoice lines showing the <strong>"Manual Pool Systems"</strong> Class:&nbsp;</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2594/Q4.png" alt="" /></p>
<p>So, you will need to use Plan B:</p>
<p>To get around this, you can first create the invoice and then add invoice lines and specify the class to use or not to use, like this:</p>
<p>INSERT INTO "InvoiceLine" ("CustomerRefListID," "ClassRefListID," "RefNumber," "InvoiceLineItemRefListID," "InvoiceLineDesc," "InvoiceLineRate," "InvoiceLineAmount," "InvoiceLineSalesTaxCodeRefListID," "FQSaveToCache") VALUES ('4C0000-1040154668', '60001-1019495266', 'QODBCClass2', '670004-1044572237', 'Building <span id="9d4fb465-76f4-4efb-98b1-ed69384fcca9" class="GINGER_SOFTWARE_mark"><span id="e584b019-778a-4d4a-9db6-d9c6dca0dd51" class="GINGER_SOFTWARE_mark">permit</span></span> Additional Room,' 100.00000, 100.00, '10000-1011136881', 0)</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2594/Q5.png" alt="" /></p>
<p>&nbsp;</p>
<p>Once the invoice is created, we can locate the TxnID using the QODBC stored procedure (as long as we haven't broken our QODBC connection):</p>
<p>SP_LASTINSERTID InvoiceLine</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2594/Q6.png" alt="" /></p>
<p>&nbsp;</p>
<p>The TxnID for the new invoice is 8D0E-1481798988, so we can now add additional lines to the invoice by doing the following:</p>
<p>INSERT INTO "InvoiceLine" ("TxnID," "ClassRefListID," "InvoiceLineItemRefListID," "InvoiceLineDesc," "InvoiceLineRate," "InvoiceLineAmount," "InvoiceLineSalesTaxCodeRefListID") VALUES ('8D0E-1481798988', '80001-1026828072', '670004-1044572237', 'Bin Permit Renovations,' 200.00000, 200.00, '10000-1011136881')</p>
<p>&nbsp;</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2594/Q7.png" alt="" /></p>
<p>&nbsp;</p>
<p>INSERT INTO "InvoiceLine" ("TxnID," "ClassRefListID," "InvoiceLineItemRefListID," "InvoiceLineDesc," "InvoiceLineRate," "InvoiceLineAmount," "InvoiceLineSalesTaxCodeRefListID") VALUES ('8D0E-1481798988', '', '670004-1044572237', 'Less Council Rebate,' -50.00000, -50.00, '10000-1011136881')</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2594/Q8.png" alt="" /></p>
<p>&nbsp;</p>
<p>The invoice now appears in QuickBooks with different Class values for each line:</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2594/Q9.png" alt="" /></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] SP_REPORT ProfitAndLossBudgetPerformance is returning no rows.]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2592]]></link>
<guid isPermaLink="false"><![CDATA[18bb68e2b38e4a8ce7cf4f6b2625768c]]></guid>
<pubDate><![CDATA[Tue, 05 Aug 2014 13:45:56 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting:&nbsp;SP_REPORT ProfitAndLossBudgetPerformance is returning no rows.
Problem Description 1:
 I am running ProfitAndLossBudgetPerformance through MS Query &amp; It is returning no rows. But using QuickBooks UI, I can get records from the ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;"><span id="6f029b59-1ce1-46b4-94a6-66ee59e9b5b9" class="GINGER_SOFTWARE_mark">Troubleshooting</span><span id="47c5069c-e391-48ff-9342-cfa987bbac2d" class="GINGER_SOFTWARE_mark">:&nbsp;</span>SP_REPORT ProfitAndLossBudgetPerformance is returning no rows.</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;"> I am running ProfitAndLossBudgetPerformance through MS Query &amp; It is returning no rows. But using QuickBooks UI, I can get records from the ProfitAndLossBudgetPerformance report. I am executing the below query:<br /><br />Sp_report ProfitAndLossBudgetPerformance show Amount_Title, Text, Label, Amount parameters DateFrom=<span id="e5aa05b0-48cf-43ff-833b-845edad119a0" class="GINGER_SOFTWARE_mark">{</span>d'2013-01-01'}, DateTo=<span id="55e19a4a-1455-468d-9f69-80eab0c884d2" class="GINGER_SOFTWARE_mark">{</span>d'2013-02-20'}, BudgetCriterion='AccountsAndClasses', SummarizeBudgetColumnsBy='Date', SummarizebudgetRowsBy='Class'<br /><br />There is no error popup occurring. From the QODBC logs, I noticed the below error:<br /><br />2014-06-18 19:39:03 QODBC Ver: 14.00.00.302 *********************************************************************************************************************<br /> <span id="fd4484ee-8037-41c9-8856-70fd04946fc3" class="GINGER_SOFTWARE_mark">IsAService</span>: False<br />SQL Statement: Sp_report ProfitAndLossBudgetPerformance show Amount_Title, Text, Label, Amount parameters DateFrom=<span id="fffe3824-20d6-40ac-896c-6b762a5d2099" class="GINGER_SOFTWARE_mark">{</span>d'2013-01-01'}, DateTo=<span id="283d5092-b3cc-4b82-bcf1-da748cff2162" class="GINGER_SOFTWARE_mark">{</span>d'2013-02-20'}, BudgetCriterion='AccountsAndClasses', SummarizeBudgetColumnsBy='Date', SummarizebudgetRowsBy='Class'<br />Error Getting XML in BuildAndLoadXMLForNextRecord<br />Input XML:<br /></span></p>
<p>&lt;<span id="efdd0460-84b3-429c-9511-1347355a77d7" class="GINGER_SOFTWARE_mark">?</span><span id="ce9a0858-1210-48f1-9cf8-fc99017a7c18" class="GINGER_SOFTWARE_mark">xml</span> version="1.0" encoding="ISO-8859-1"?&gt;</p>
<p>&lt;<span id="52ff8cbb-1bc1-42e0-be09-358ba74ecc32" class="GINGER_SOFTWARE_mark">?</span><span id="00a09ea1-72e3-4818-9773-4872344af2e2" class="GINGER_SOFTWARE_mark">qbxml</span> version="11.0"?&gt;</p>
<p>&lt;QBXML&gt;</p>
<p>&lt;<span id="53f0c823-7f4e-4fdb-a87c-14534cab3777" class="GINGER_SOFTWARE_mark">QBXMLMsgsRq</span> onError=" continue on error"&gt;</p>
<p>&lt;<span id="e6b8d2d7-5ae0-4cbb-916d-aa5335590649" class="GINGER_SOFTWARE_mark">BudgetSummaryReportQueryRq</span> requestID="1"&gt;</p>
<p>&lt;<span id="1808e436-06c7-4cc5-ae6d-92b75613d3c7" class="GINGER_SOFTWARE_mark">BudgetSummaryReportType</span>&gt;ProfitAndLossBudgetPerformance&lt;/BudgetSummaryReportType&gt;</p>
<p>&lt;<span id="da8621a4-30fb-4713-a20e-5923a30a0c3a" class="GINGER_SOFTWARE_mark">BudgetCriterion</span>&gt;AccountsAndClasses&lt;/BudgetCriterion&gt;</p>
<p>&lt;<span id="9ea4256b-7fdb-456d-a7f1-9c873f5f109c" class="GINGER_SOFTWARE_mark">ReportPeriod</span>&gt;</p>
<p>&lt;<span id="50ac138b-431b-4025-9a99-b4d678ab3ec6" class="GINGER_SOFTWARE_mark">FromReportDate</span>&gt;2013-01-01&lt;/FromReportDate&gt;</p>
<p>&lt;<span id="1ba7e912-02eb-4492-beb5-30694c8654c3" class="GINGER_SOFTWARE_mark">ToReportDate</span>&gt;2013-02-20&lt;/ToReportDate&gt;</p>
<p>&lt;/<span id="847f85be-7d1b-40ad-a5fe-b43cd7ff6438" class="GINGER_SOFTWARE_mark">ReportPeriod</span>&gt;</p>
<p>&lt;<span id="81bc61e1-30f4-4648-beac-61201ddeb408" class="GINGER_SOFTWARE_mark">SummarizeBudgetColumnsBy</span>&gt;Date&lt;/SummarizeBudgetColumnsBy&gt;</p>
<p>&lt;<span id="3fb33db8-5920-4b12-9ba1-2cbb3d32ea18" class="GINGER_SOFTWARE_mark">SummarizeBudgetRowsBy</span>&gt;Class&lt;/SummarizeBudgetRowsBy&gt;</p>
<p>&lt;/<span id="4907ef18-e2ee-41e1-84d5-405ccd7e3732" class="GINGER_SOFTWARE_mark">BudgetSummaryReportQueryRq</span>&gt;</p>
<p>&lt;/<span id="1689e5d2-00c3-46b0-8ac8-25a34ac7183e" class="GINGER_SOFTWARE_mark">QBXMLMsgsRq</span>&gt;</p>
<p>&lt;/QBXML&gt;</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;"> Is there any way to have a date prompt in this stored procedure instead of a fixed fiscal year? I am running the query into Excel using Microsoft Query. It appears to give me information regarding the current month (i.e., February info since this is the month of February) for the fiscal year identified in the parameters. Is there any way I can replace <span id="5a148f08-fad1-41cc-b0ce-2791d798bbda" class="GINGER_SOFTWARE_mark">FiscalYear</span> with a FromDate and ToDate <span id="53d0a21f-a0e3-4061-8c13-fc956a778367" class="GINGER_SOFTWARE_mark">parameter</span>? </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;">As per QuickBooks SDK, the parameter "fiscal year" is required in the ProfitAndLossBudgetPerformance report. So there is the parameter "fiscal year" is missing in the SQL statement. After including the required parameter, you can get all records from the ProfitAndLossBudgetPerformance report. Please refer below query:<br /><br />sp_report ProfitAndLossBudgetPerformance show Amount_Title, Text, Label, Amount parameters DateFrom=<span id="baba64c7-4ad4-455d-9676-a6d5c2b23fd8" class="GINGER_SOFTWARE_mark">{</span>d '2013-01-01'}, DateTo=<span id="932d939c-329d-4ec3-be74-ec72666ad77c" class="GINGER_SOFTWARE_mark">{</span>d '2013-02-20'}<span id="5802a3b8-ac1e-4a76-b9e8-5ba50a1bd52a" class="GINGER_SOFTWARE_mark">,</span>FiscalYear=2013, BudgetCriterion='AccountsAndClasses', SummarizeBudgetColumnsBy='Date', SummarizebudgetRowsBy='Class'<br /><br />Please refer to the article mentioned. You can get detailed information about how to execute sp_report in QODBC:<br /><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2369/0/how-to-use-the-quickbooks-reporting-engine-with-qodbc">How to use the QuickBooks Reporting Engine with QODBC</a><br /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How can I find QuickBooks deleted record information from QODBC?]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2590]]></link>
<guid isPermaLink="false"><![CDATA[7876acb66640bad41f1e1371ef30c180]]></guid>
<pubDate><![CDATA[Tue, 05 Aug 2014 13:33:32 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[How can I find QuickBooks deleted record information from QODBC?
Problem Description:
 Is there a stored procedure that provides all deleted transactions? I.e., Voided/Deleted Transactions Detail?
 For Example: 
 If an Invoice gets deleted from QuickB...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">How can I find QuickBooks deleted record information from 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;"> Is there a stored procedure that provides all deleted transactions? I.e., Voided/Deleted Transactions Detail?</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> For Example: </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> If <span id="71121e71-c7ed-497f-9ab6-7bc375664f66" class="GINGER_SOFTWARE_mark">an</span> Invoice gets deleted from QuickBooks, does it get physically deleted? Otherwise, which field(s) would tell me that <span id="8972d45c-0ad2-486f-90ad-0b6fb9a5a9e2" class="GINGER_SOFTWARE_mark">fact</span>?</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 can find Voided/Deleted <span id="9796a3cf-d558-4720-ad37-41337ca1a290" class="GINGER_SOFTWARE_mark">Transactions</span> details from QODBC "TxnDeleted" and "ListDeleted" tables. Please refer to tables "TxnDeleted" and "ListDeleted" to see the data you are looking for. </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">For Example, I have an&nbsp;<span id="073cba39-43f2-4e7d-a630-317aea30e43d" class="GINGER_SOFTWARE_mark">Invoice</span> in QuickBooks whose Invoice# is 1114 &nbsp;</span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/QuickBooksdeletedrecord/Step1.png" alt="http://support.flexquarters.com/esupport/newimages/QuickBooksdeletedrecord/Step1.png" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Now we are verifying the same Invoice from the QODBC Invoice table<span id="2e3188b2-37b2-47be-87d9-6fb2a6646f24" class="GINGER_SOFTWARE_mark">.&nbsp;</span>By using the below query:<br />SELECT * FROM Invoice where <span id="afce94a8-cbbf-459d-b5fb-702f2936d5d9" class="GINGER_SOFTWARE_mark">RefNumber</span> ='1114'</span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/QuickBooksdeletedrecord/Step2.png" alt="http://support.flexquarters.com/esupport/newimages/QuickBooksdeletedrecord/Step2.png" width="976" height="401" /></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Now we are&nbsp;<span id="79e56ad1-15f3-4cbd-b184-f05e3f114f3c" class="GINGER_SOFTWARE_mark">deleting</span>&nbsp;the Invoice from QuickBooks, whose Invoice# is 1114:&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/QuickBooksdeletedrecord/Step3.png" alt="http://support.flexquarters.com/esupport/newimages/QuickBooksdeletedrecord/Step3.png" /><br /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Now we are verifying the same Invoice from the QODBC Invoice table to see if it <span id="31310692-7de6-4897-a7c5-012621eadec0" class="GINGER_SOFTWARE_mark">exists</span> in the QODBC Invoice table<span id="c7ceb552-4480-4b61-a415-86988ba6a5be" class="GINGER_SOFTWARE_mark">.&nbsp;</span>By using the below query:<br />SELECT * FROM Invoice where <span id="6aca47c4-c625-4748-9eeb-80462c2adb73" class="GINGER_SOFTWARE_mark">RefNumber</span> ='1114'</span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/QuickBooksdeletedrecord/Step4.png" alt="http://support.flexquarters.com/esupport/newimages/QuickBooksdeletedrecord/Step4.png" width="982" height="399" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Now we are checking the same Invoice from the QODBC TxnDeleted table to see if it <span id="9c9ec1af-4e1d-4c93-8bee-1a40670c9560" class="GINGER_SOFTWARE_mark">exists</span> in the QODBC TxnDeleted table<span id="f77349db-7c15-4190-8780-cdfafcef6434" class="GINGER_SOFTWARE_mark">.&nbsp;</span>By using the below query:<br />SELECT * FROM TxnDeleted where TxnDelType='Invoice'&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/QuickBooksdeletedrecord/Step5.png" alt="http://support.flexquarters.com/esupport/newimages/QuickBooksdeletedrecord/Step5.png" width="673" height="717" /></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">We can find Deleted Transactions (i.e., Invoice<span id="e44aa1be-67d0-4428-bb3d-073305707046" class="GINGER_SOFTWARE_mark">,&nbsp;</span><span id="b9592002-c1ba-42c9-93fd-e84d92d0a3a5" class="GINGER_SOFTWARE_mark">SalesOrder</span><span id="9d4a3f68-7177-433c-8639-6c27a3bdb59f" class="GINGER_SOFTWARE_mark">,&nbsp;</span><span id="bce8e244-4598-4b44-9e0c-251b78a61745" class="GINGER_SOFTWARE_mark">TimeTracking, etc.</span>.) details from QODBC "TxnDeleted" tables.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">We can find Deleted List (i.e., Customer<span id="32da7f5f-2838-4d5f-80ec-cfa4c00710bf" class="GINGER_SOFTWARE_mark">,</span> Item, etc..) details from QODBC "ListDeleted" tables.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to create an Item Inventory Assembly through MS Access using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2581]]></link>
<guid isPermaLink="false"><![CDATA[309a8e73b2cdb95fc1affa8845504e87]]></guid>
<pubDate><![CDATA[Tue, 05 Aug 2014 12:20:33 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[How to create an Item Inventory Assembly through MS Access using QODBC 
An Example of Creating One ItemInventoryAssembly with Two Lines 
First, please create a new MS Access database &amp; link ItemInventoryAssembly, and&nbsp;ItemInventoryAssemblyLine t...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">How to create an Item Inventory Assembly through MS Access using QODBC </span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">An Example of Creating One ItemInventoryAssembly with Two Lines </span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">First, please create a new MS Access database &amp; link ItemInventoryAssembly<span id="5789879a-bc0b-46db-88b8-456f5d5d8638" class="GINGER_SOFTWARE_mark">, and&nbsp;</span>ItemInventoryAssemblyLine tables.</span><br /> <span style="font-family: Arial, Helvetica, sans-serif;">Please refer to the below-mentioned article for How to Use QODBC with Microsoft Access:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2448/0/how-to-use-qodbc-with-microsoft-access-2007">How to Use QODBC with Microsoft Access</a></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">After linking the table, we need to execute the query in the MS Access query editor:</span><br /> <span style="font-family: Arial, Helvetica, sans-serif;">MS Access&gt;&gt; <span id="7809b6a4-ed71-4720-9d0d-adc324df43c0" class="GINGER_SOFTWARE_mark">create</span> tab &gt;&gt; Query Design &gt;&gt; It should pop up&nbsp;for choosing a&nbsp;<span id="e17e1eef-ca4d-43c6-9943-8a328f495b34" class="GINGER_SOFTWARE_mark">table. Please</span>&nbsp;click the "Close" button &amp; click on "SQL" from the left top corner below the File menu.</span><br /> <span style="font-family: Arial, Helvetica, sans-serif;">Note the <span style="color: #0000ff;">FQSaveToCache</span> field, set to True, except <span id="d0e0c7a2-9994-4823-a633-df55e766d023" class="GINGER_SOFTWARE_mark">on</span> the last one.</span></p>
<p>&nbsp;</p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>First Line </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">INSERT INTO ItemInventoryAssemblyLine (Name, IsActive, SalesDesc, IncomeAccountRefListID, COGSAccountRefListID, AssetAccountRefListID, ItemInventoryAssemblyLnItemInventoryRefListID, ItemInventoryAssemblyLnQuantity, FQSaveToCache) VALUES ('NewAssembly1', 1, 'QODBC New Assembly1', '340000-933270542', '1E0000-933270542', '60000-933270541', '160000-933272656', 2.0, 1)</span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InventoryAssemblyMSAccess/Step1.png" alt="http://support.flexquarters.com/esupport/newimages/InventoryAssemblyMSAccess/Step1.png" width="1021" height="502" /></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InventoryAssemblyMSAccess/Step2.png" alt="http://support.flexquarters.com/esupport/newimages/InventoryAssemblyMSAccess/Step2.png" width="470" height="142" /></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Second Line </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">INSERT INTO ItemInventoryAssemblyLine (Name, IsActive, SalesDesc, IncomeAccountRefListID, COGSAccountRefListID, AssetAccountRefListID, ItemInventoryAssemblyLnItemInventoryRefListID, ItemInventoryAssemblyLnQuantity, FQSaveToCache) VALUES ('NewAssembly1', 1, 'QODBC New Assembly1', '340000-933270542', '1E0000-933270542', '60000-933270541', '130000-933272656', 1.0, 0)</span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InventoryAssemblyMSAccess/Step3.png" alt="http://support.flexquarters.com/esupport/newimages/InventoryAssemblyMSAccess/Step3.png" width="1019" height="500" /></p>
<p>&nbsp;</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InventoryAssemblyMSAccess/Step2.png" alt="http://support.flexquarters.com/esupport/newimages/InventoryAssemblyMSAccess/Step2.png" width="470" height="142" /></p>
<p>&nbsp;</p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Result in QuickBooks &nbsp;</strong></span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/InventoryAssemblyMSAccess/Step4.png" alt="http://support.flexquarters.com/esupport/newimages/InventoryAssemblyMSAccess/Step4.png" width="727" height="683" /></strong></span></p>
<p>&nbsp;</p>
<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Questions and Answers </span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Question</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; This seems to work for adding multiple items (ItemInventoryAssemblyLine records) to an assembly when the assembly is first created.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; However, I am having trouble adding new ItemInventoryAssemblyLine records to an existing assembly. When I try to repeat an INSERT with FQSaveToCache set <span id="da8fe3ea-24f3-49de-8dcd-680072872580" class="GINGER_SOFTWARE_mark">to</span> 0, I get an error.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp; &nbsp; &nbsp;QODBC Error 3100 - The name "NewAssembly1" of the list element is already in use (#10053)</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Answer</span></h3>
<p>&nbsp;&nbsp; <span style="font-family: Arial, Helvetica, sans-serif;">I don't think we can add items to an existing assembly. The workaround would be to create a new assembly with the additional items.</span><strong>&nbsp;</strong></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 want to add new assemblies to the </span>item list<span style="font-family: arial, helvetica, sans-serif;">. I've tried the two queries below. Both result in this error:</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;">invalid operand for the operator: &lt;assignment&gt;</span><br /><span style="font-family: arial, helvetica, sans-serif;">code 11024</span><br /><span style="font-family: arial, helvetica, sans-serif;">Can you suggest a query that will work?</span>&nbsp;</p>
<p><br /><span style="font-family: arial, helvetica, sans-serif;">INSERT INTO ItemInventoryAssemblyLine (Name, IsActive, SalesDesc, IncomeAccountRefListID, IncomeAccountRefFullName, PurchaseDesc, COGSAccountRefListID, COGSAccountRefFullName, AssetAccountRefListID, AssetAccountRefFullName) VALUES ('12082-74262', 'Active,' 'burner assy, oval twin, 3" offset, ss, 13.875 x 3.875; Tera Gear', '80000038-1351453685', 'BBQ Sales Income,' 'burner assy, oval twin, 3" offset, ss, 13.875 x 3.875', '80000046-1351453685', 'Cost of Goods Sold: Materials - Cost of Goods Sold,' '80000021-1351453684', 'Inventory Asset');</span>&nbsp;</p>
<p><span style="font-family: arial, helvetica, sans-serif;">INSERT INTO ItemInventoryAssembly (Name, IsActive, SalesDesc, IncomeAccountRefListID, IncomeAccountRefFullName, PurchaseDesc, COGSAccountRefListID, COGSAccountRefFullName, AssetAccountRefListID, AssetAccountRefFullName, CustomFieldcoo, CustomFielditemClass) VALUES ('12082-74262', 'Active,' 'burner assy, oval twin, 3" offset, ss, 13.875 x 3.875; Tera Gear', '80000038-1351453685', 'BBQ Sales Income,' 'burner assy, oval twin, 3" offset, ss, 13.875 x 3.875', '80000046-1351453685', 'Cost of Goods Sold: Materials - Cost of Goods Sold,' '80000021-1351453684', 'Inventory Asset,' 'TW,' 'am');</span></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solution:</span></h3>
<p><span style="font-family: arial, helvetica, sans-serif;">Due to this issue, the IsActive field contains a boolean datatype &amp; it accepts 1/0 or true/false as input. I have used 'Active' as a value in the&nbsp;</span>IsActive<span style="font-family: arial, helvetica, sans-serif;"> field.&nbsp;</span><span style="font-family: arial, helvetica, sans-serif;">Please use the below query &amp; try again.</span><br /><br /><span style="font-family: arial, helvetica, sans-serif;">INSERT INTO ItemInventoryAssemblyLine (Name, IsActive, SalesDesc, IncomeAccountRefListID, IncomeAccountRefFullName, PurchaseDesc, COGSAccountRefListID, COGSAccountRefFullName, AssetAccountRefListID, AssetAccountRefFullName, FQSaveToCache) VALUES ('12082-74262', 1, 'burner assy, oval twin, 3" offset, ss, 13.875 x 3.875; Tera Gear', '80000038-1351453685', 'BBQ Sales Income,' 'burner assy, oval twin, 3" offset, ss, 13.875 x 3.875', '80000046-1351453685', 'Cost of Goods Sold: Materials - Cost of Goods Sold,' '80000021-1351453684', 'Inventory Asset,' 1)</span><br /><br /><span style="font-family: arial, helvetica, sans-serif;">INSERT INTO ItemInventoryAssembly (Name, IsActive, SalesDesc, IncomeAccountRefListID, IncomeAccountRefFullName, PurchaseDesc, COGSAccountRefListID, COGSAccountRefFullName, AssetAccountRefListID, AssetAccountRefFullName, CustomFieldcoo, CustomFielditemClass, FQSaveToCache) VALUES ('12082-74262', 1, 'burner assy, oval twin, 3" offset, ss, 13.875 x 3.875; Tera Gear', '80000038-1351453685', 'BBQ Sales Income,' 'burner assy, oval twin, 3" offset, ss, 13.875 x 3.875', '80000046-1351453685', 'Cost of Goods Sold: Materials - Cost of Goods Sold,' '80000021-1351453684', 'Inventory Asset,' 'TW,' 'am,' 0)</span><br /><br /><br /><span style="font-family: arial, helvetica, sans-serif;">Please refer </span>below-mentioned<span style="font-family: arial, helvetica, sans-serif;"> link for getting details about the QODBC Table schema:</span><br /><br /><a href="http://qodbc.com/schema.htm">QODBC Data Layouts</a></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>&nbsp;</strong></span></p>
<p>&nbsp;</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 Additional quote (') in 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 <span id="5d38f4af-d1b6-4042-80c9-70af9d4bd348" class="GINGER_SOFTWARE_mark">Additional quote</span> (') in 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 below 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] ERROR [42000] [QODBC] Expected lexical element not found: ]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2538]]></link>
<guid isPermaLink="false"><![CDATA[1bf0c59238dd24a7f09a889483a50e8f]]></guid>
<pubDate><![CDATA[Mon, 14 Apr 2014 13:54:22 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Problem Description 1: 
 I'm working in PHP and using the QODBC Test Tool. I am trying to Insert value into the Customer table. 
 But I am getting the below error:  
 Expected lexical element not found:  
 My insert statement is: 
 Insert into Custom...]]></description>
<content:encoded><![CDATA[<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;"> I'm working in PHP and using the QODBC Test Tool. I am trying to Insert value into the Customer table.<br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> But I am getting the below error: <br /> </span></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> <strong>Expected lexical element not found: </strong><br /> </span></span></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> My insert statement is:<br /> </span></span></span></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> Insert into Customer ('CompanyName,' 'Phone,' 'Email') values('adsf,' '235632', 'afdsf');<br /> </span></span></span></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> Won't work for me. Any suggestions as to why? <br /> </span></span></span></span></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solution 1: </span></span></span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> QODBC will issue this error when there is a syntax error in your SQL statements. <br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> Your insert statement should be like this: <br /> </span></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> Insert into Customer ("CompanyName," "Phone," "Email") values('Test,' '235632', 'abc@def.com'); <br /> </span></span></span></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description 2: </span></span></span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> I have constructed an insert statement that is getting this error. To narrow it down, I modified the values portion of my query to be a select inserted and tested the different data types I was trying to select. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> After doing so, I was able to determine that the problem is with both the ts and d functions that we have here, and I had to assume that it was the input's fault and not yours since the process is referenced everywhere. I seemed to remember reading somewhere that you guys use the computer's regional time settings to figure out how to parse out times, but after my test, I found this not to be the case. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> For example <br />select {ts'8/20/2006 9:26:15 AM'} from customer<br />and<br />select {d'9/15/2006'} from customer<br />both give the lexical element error.<br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> My "Regional and Language settings" in "Control Panel" say my date-time format looks like so: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> Time: 10:04:29 AM<br />Short Date: 8/10/2006<br />Long Date: Thursday, August 10, 2006<br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I was hoping that you guys were paying attention to it. After all, that's what .NET does, and it seems to work great. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> select {d'2006-06-26'} from customer</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> This results in "6/26/2006 12:00:00 AM," which is expected, but having to format the time for the select/insert/update/delete statement so that it can be formatted back seems like a lot of overhead... </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> For those of us using .Net (or any language that supports date/time formatting via a format string), you should be able to use the following: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> String date= System.DateTime.Now.ToString("yyyy-MM-dd");<br />string datetime= System.DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss tt");</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> Which will give you the following:<br />2006-08-10<br />and<br />2006-08-10 10:10:39 AM<br /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Respectively, which can be used in your SQL Statement afterward.</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;"> QODBC will issue this error when there is a syntax error on your SQL statements.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> So please check your statements &amp; try again.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> QODBC uses the standard SQL Date {d'YYYY-MM-DD'} and Timestamp {ts 'YYYY-MM-DD HH:mm: SS.zzz'} formats and is the same worldwide regardless of the region: See also: <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2203/0/how-are-dates-formatted-in-sql-queries-when-using-the-quickbooks-generated-time-stamps">How are dates formatted in SQL queries when using the QuickBooks generated time stamps </a></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to add blank InvoiceLine in QuickBooks using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2532]]></link>
<guid isPermaLink="false"><![CDATA[9824f9c1543628a85bb51d2dd6fcf8a3]]></guid>
<pubDate><![CDATA[Thu, 26 Dec 2013 10:07:42 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Problem Description:
How can I add blank InvoiceLine in QuickBooks using QODBC?
Solution:
There are empty Invoice line records in QuickBooks, and QODBC can view them too, but you may not be able to create an empty InvoiceLine in QODBC.
You cannot crea...]]></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;">How can I add blank InvoiceLine in QuickBooks 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;">There are empty Invoice line records in QuickBooks, and QODBC can view them too, but you may not be able to create an empty InvoiceLine in QODBC.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You cannot create an empty Invoice either in QODBC or in QuickBooks. But in QuickBooks, you could leave lines blank and ensure at least one line of data in your invoice to create empty line records.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">But in QODBC, Invoice lines are inserted by single queries. When you insert a line record, QODBC will automatically generate an invoice to contain this line item. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">When the line record is null, there will be no record of the new invoice, which is not allowed by QuickBooks.</span><span style="font-family: Arial,Helvetica,sans-serif;"> So QODBC could not create an empty InvoiceLine record. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">The empty InvoiceLine record must be ItemGroup/InvoiceGroupLine. Please refer: To how<a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/504/0/how-to-invoice-itemgroups-using-qodbc">&nbsp;to Invoice ItemGroups using QODBC</a>.</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Error when apply payment to an invoice 'TxnID' Not Found]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2531]]></link>
<guid isPermaLink="false"><![CDATA[217c0e01c1828e7279051f1b6675745d]]></guid>
<pubDate><![CDATA[Thu, 26 Dec 2013 09:56:58 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Problem Description:
I am attempting to apply payments to invoices. I have also determined the TxnID of the Invoice I want to apply a payment to and used it in the SQL code specified on How to apply a payment to an invoice.
I am getting the error 'Error...]]></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 attempting to apply payments to invoices. I have also determined the TxnID of the Invoice I want to apply a payment to and used it in the SQL code specified on <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2423/0/how-to-apply-payment-to-an-invoice.">How to apply a payment to an invoice</a>.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am getting the error 'Error: 3120 - Object "43AC05E5-1352851019" specified in the request cannot be found.' </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/Errorwhenapply paymenttoaninvoice.png" alt="" width="716" height="146" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I have checked that I have the correct TxnID. I can do a "SELECT * from Invoice WHERE TxnID='43AC05E5-1352851019, '" and it works. It's just when I try the Insert Into operation that things fail.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I have confirmed that I can successfully write to QuickBooks by creating an unapplied payment. It is just when trying to apply the payment to a specific invoice.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I created a new unapplied payment and then tried applying that payment to an open invoice, which didn't work either.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">My SQL Statement:<br />INSERT INTO ReceivePaymentLine (CustomerRefListID, DepositToAccountRefListID, TotalAmount, AppliedToTxnTxnID, AppliedToTxnPaymentAmount, Memo) Values ('80000CDC-1275674980', '4D0000-1095982517', 1414.02, '43AC05E5-1352851019', 1414.02, 'Payment for Invoice test')</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Also, I verified the invoice 43A96469-1351099713 belongs the customer 80000DC6-1286995152</span></p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solution:</span></h3>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">1) The Invoice or the Bill is already paid</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">OR</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">2) The Invoice or the Bill you are trying to adjust does not belong to the same customer/vendor as the Payment or Check is</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">OR</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">3) The ID you have specified does not exist.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">OR</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">4) Missing&nbsp;ARAccount</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Your query is missing ARAccount related column.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You need to insert ARAccountRefListID in your insert query.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please add the ARAccountRefListID of the invoice you want to apply for payment in your query.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">The ARAccountRefListID of the invoice you want to apply the payment to is "400000-1095829128", So please add this value to your insert query.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please try to run the below query:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">INSERT INTO ReceivePaymentLine (CustomerRefListID, DepositToAccountRefListID, ARAccountRefListID, TotalAmount, AppliedToTxnTxnID, AppliedToTxnPaymentAmount, Memo) VALUES ('80000DC6-1286995152', '4D0000-1095982517', '400000-1095829128',281.98, '43A96469-1351099713', 281.98, 'Apply payment test') </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: QODBC Hangs When Trying to Execute Query or View Tables]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2494]]></link>
<guid isPermaLink="false"><![CDATA[c30fb4dc55d801fc7473840b5b161dfa]]></guid>
<pubDate><![CDATA[Fri, 11 Jan 2013 12:36:02 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting: QODBC Hangs When Trying to Execute Query or View Tables
Problem Description: 
When executing a simple query like:
SELECT * FROM Invoice
Application and QuickBooks will both get hang, and it Does Not Respond.
Then After, the applicati...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting: QODBC Hangs When Trying to Execute Query or View Tables</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 executing a simple query like:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">SELECT * FROM Invoice</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Application and QuickBooks will both get hang, and it Does Not Respond.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Then After, the application is forced to close, QuickBooks becomes normal again.</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 may be the case of your Optimizer file being corrupted or the QuickBooks Company file needing Rebuild/Repair.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">C</span><span style="font-family: Arial,Helvetica,sans-serif;">lose All applications using QODBC &amp; un-select "Use Optimizer" (QODBC Setup Screen-&gt;Optimizer Window-&gt;Uncheck "Use Optimizer" option). </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/QODBC%20hang%201.jpg" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Then use our <strong>QODBC Test Tool</strong> to test again to see if the problem is still there.</span></p>
<p>If this does not resolve the issue, you may have to rebuild your company file.&nbsp;<span style="font-family: Arial,Helvetica,sans-serif;">Please refer to how</span><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2485/0/how-to-rebuild-an-quickbooks-company-file">&nbsp;to rebuild a QuickBooks Company File</a>.</p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">And if QODBC works with the optimizer turned off, then there might be a problem/corruption in your optimizer file.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You can click "Reset Optimizer File" and then execute "the&nbsp;</span><span style="font-family: Arial,Helvetica,sans-serif;">sp_optimizefullsync ALL"&nbsp;</span><span style="font-family: Arial,Helvetica,sans-serif;">command in the&nbsp;<strong>QODBC Test Tool</strong>:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Refer:&nbsp; </span><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2459/0/how-to-execute-sp_optimizeupdatesync-or-sp_optimizefullsync-for-selected-tables">How to execute SP_OPTIMIZEUPDATESYNC or SP_OPTIMIZEFULLSYNC for Selected Tables</a></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/reset_Optimizer_setupscreen.png" alt="" width="415" height="482" /></span></p>
<p><br /><span style="font-family: Arial,Helvetica,sans-serif;"> Otherwise, follow the steps.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">You need</span><span style="font-family: Arial,Helvetica,sans-serif;"> to reset your opt file store path. You can find the path setting at QODBC Setup Screen-&gt;Optimizer Window. </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/QODBC%20hang%202.jpg" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">&nbsp;</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">The default path is "%UserProfile%\QODBC Driver for QuickBooks\Optimizer". Please set it to "%appdata%\QODBC Driver for QuickBooks\Optimizer" or use another folder that you have full authority to access it.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">After the path setting is completed, </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Navigate to that Path,&nbsp; Start -&gt; Run -&gt;, and then type the Optimizer file path, Delete the.OPT ( </span>corresponding to your company file )</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please run this command in <strong>QODBC Test Tool</strong>:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">sp_optimizefullsync all</span></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/2494/all_optimizefullsync.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;">This command will re-optimize all QuickBooks data and create a new OPT file in the folder you assigned.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Refer:&nbsp; </span><a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2459/0/how-to-execute-sp_optimizeupdatesync-or-sp_optimizefullsync-for-selected-tables">How to execute SP_OPTIMIZEUPDATESYNC or SP_OPTIMIZEFULLSYNC for Selected Tables</a></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">If you are using a connection string or linked table in MS Access to connect to QuickBooks, please remove the former connection string or linked table and re-build a new one to make sure that it points to the new opt file store path.</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Updating JournalEntry Records via QODBC shows Error, Transaction not in balance]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2493]]></link>
<guid isPermaLink="false"><![CDATA[8a20a8621978632d76c43dfd28b67767]]></guid>
<pubDate><![CDATA[Fri, 11 Jan 2013 12:32:46 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting: Updating JournalEntry Records via QODBC shows Error, Transaction not in balance.
Instruction: 
Under QuickBooks, when saving a Journal Entry record, the Debit total should match the Credit total.
Even thou you are not changing the amou...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting: Updating JournalEntry Records via QODBC shows Error, Transaction not in balance.</span></h2>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Instruction: </span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Under QuickBooks, when saving a Journal Entry record, the Debit total should match the Credit total.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Even thou you are not changing the amount and just updating other information on the Credit/Debit entry, You may encounter "</span>Transaction not in balance"<span style="font-family: Arial,Helvetica,sans-serif;">:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">UPDATE JournalEntryDebit Line SET journaldebitlineaccountreflistid='8000008F-1197954502', journaldebitlineaccountreffullname='Note Payable - Bank of Anycity', journaldebitlineamount=35000 where txnid='5E40-1197715323'</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">This query will return an error like this:</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/Update%20Journal%20Entries%2001.JPG" alt="" /></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;">To make the Journal Entry update query work, you should add the FQSaveToCache field into your update query and Updated BOTH </span><br /><span style="font-family: Arial,Helvetica,sans-serif;"> JournalEntryDebitLine &amp;&nbsp; </span><span style="font-family: Arial,Helvetica,sans-serif;">JournalEntryCreditLine </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">When FQSaveToCache is set to value 1, all changes will be stored in a cache instead of directly sending to QuickBooks, and when it is set to 0, all updates in the cache will be sent to QuickBooks in one time. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please modify the query like this:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">UPDATE JournalEntryDebitLine SET journaldebitlineaccountreflistid='8000008F-1197954502', journaldebitlineaccountreffullname='Note Payable - Bank of Anycity', journaldebitlineamount=35000, <span style="color: #ff0000;">FQSaveToCache =1</span> where txnid='5E40-1197715323'</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">UPDATE JournalEntryCreditLine SET journalcreditlineaccountreflistid='8000008F-1197954502', journalcreditlineaccountreffullname='Note Payable - Bank of Anycity', journalcreditlineamount=35000, <span style="color: #ff0000;">FQSaveToCache=0</span> where txnid='5E40-1197715323'</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please notice that I added the FQSaveToCache field in my update query and set the first value to 1 and the last value to 0 so that the update can be done at the same time to avoid an imbalance problem.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Note: Generally, the field FQSaveToCache is used with the INSERT Statement, but it can work with the UPDATE statement only for these tables.&nbsp;</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Here is the data in QuickBooks before I run the update: </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/Update%20Journal%20Entries%2002.JPG" alt="" /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Here is the data in QuickBooks after I run the update: </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/Update%20Journal%20Entries%2003.JPG" alt="" /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Expected lexical element not found]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2465]]></link>
<guid isPermaLink="false"><![CDATA[1e0a84051e6a4a7381473328f43c4884]]></guid>
<pubDate><![CDATA[Wed, 31 Oct 2012 11:51:19 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting: Expected lexical element not found
Problem Description&nbsp;
When trying to execute a query statement, I get the error message " Expected lexical element not found."
Solutions
It seems to be the issue in the SQL Statement. Please chec...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting: Expected lexical element not found</span></h2>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description&nbsp;</span></h3>
<p><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;"><span style="color: #000000;">When trying to execute a query statement, I get the error message</span> " <strong>Expected lexical element not found</strong>."</span></p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solutions</span></h3>
<p><span style="color: #000000; font-family: Arial,Helvetica,sans-serif;">It seems to be the issue in the SQL Statement. Please check all the field names and table names. Usually,&nbsp;this could be a typo error in the field name in your SQL Statement. To know more about the fields and data layout, please <a href="http://qodbc.com/schema.htm" target="_blank">Click Here</a></span>&nbsp;</p>
<h3><span style="font-family: arial, helvetica, sans-serif; color: #3366ff;">Another Possible Problem &amp; Solution:</span></h3>
<h4><span style="color: #3366ff;">Problem Description:</span></h4>
<p id="yui_3_15_0_1_1409729252221_899"><span id="yui_3_15_0_1_1409729252221_910" style="font-family: arial, helvetica, sans-serif;">When I issue SQL statement:</span></p>
<p id="yui_3_15_0_1_1409729252221_877"><span style="font-family: arial, helvetica, sans-serif;">SELECT Desc FROM Charge&nbsp;</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;">I get "Expected lexical element not found: = &lt;identifier&gt;."</span></p>
<p id="yui_3_15_0_1_1409729252221_906"><span style="font-family: arial, helvetica, sans-serif;">However, if I issue</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;">Select * from Charge</span></p>
<p id="yui_3_15_0_1_1409729252221_856"><span style="font-family: arial, helvetica, sans-serif;">Then, I get a full output with one of the columns named "Desc."</span></p>
<p id="yui_3_15_0_1_1409729252221_860"><span style="font-family: arial, helvetica, sans-serif;">Why can't I query for the column by name?</span></p>
<p id="yui_3_15_0_1_1409729252221_862"><span style="font-family: arial, helvetica, sans-serif;">I have tried this through the <a href="https://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2981" target="_blank">QODBC Support Wizard</a> and a C# program.</span>&nbsp;</p>
<div>
<h4><span style="color: #3366ff;">Solution:</span>&nbsp;</h4>
</div>
<div><span style="font-family: arial, helvetica, sans-serif;">I want to inform you that&nbsp;Desc may be a reserved word in SQL; you are getting this error. I kindly request you to please put quotes around <strong>"Desc."</strong>&nbsp;Please use the below query, which does not issue an error:</span></div>
<div><span style="font-family: arial, helvetica, sans-serif;">&nbsp;</span></div>
<div><span style="font-family: arial, helvetica, sans-serif;">SELECT <strong>"Desc"</strong> FROM Charge&nbsp;</span></div>
<p><span style="color: #000000; font-family: arial, helvetica, sans-serif;">&nbsp;</span></p>
<h4><span style="color: #3366ff;">Problem Description:</span></h4>
<p id="yui_3_15_0_1_1409729252221_899"><span id="yui_3_15_0_1_1409729252221_910" style="font-family: arial, helvetica, sans-serif;">I am trying to clear a date column for the JobStartDate and I am getting an error. Any help would be great, I could not find a help article on this.<br /><br />I am using .net if that matters.<br /><br /><br />Dim jobStartDate As Date? = Nothing<br /><br />Dim cmd As New OdbcCommand($"<br />UPDATE customer<br />SET jobStartDate = {jobStartDate}<br />WHERE ListID = '{listID}' ",<br />con)<br /><br />cmd.ExecuteNonQuery()<br /><br /><br />ERROR [42000] [QODBC] [sql syntax error] Expected lexical element not found: = CASE<br /><br /><br />Dim jobStartDate As Date = Nothing<br /><br />Dim cmd As New OdbcCommand($"<br />UPDATE customer<br />SET jobStartDate = {jobStartDate}<br />WHERE ListID = '{listID}' ",<br />con)<br /><br />cmd.ExecuteNonQuery()<br /><br />Message = "ERROR [42000] [QODBC] Unexpected extra token: :00:00"</span></p>
<p id="yui_3_15_0_1_1409729252221_877"><span style="font-family: arial, helvetica, sans-serif;">SELECT Desc FROM Charge&nbsp;</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;">I get "Expected lexical element not found: = &lt;identifier&gt;."</span></p>
<p id="yui_3_15_0_1_1409729252221_906"><span style="font-family: arial, helvetica, sans-serif;">However, if I issue</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;">Select * from Charge</span></p>
<p id="yui_3_15_0_1_1409729252221_856"><span style="font-family: arial, helvetica, sans-serif;">Then, I get a full output with one of the columns named "Desc."</span></p>
<p id="yui_3_15_0_1_1409729252221_860"><span style="font-family: arial, helvetica, sans-serif;">Why can't I query for the column by name?</span></p>
<p id="yui_3_15_0_1_1409729252221_862"><span style="font-family: arial, helvetica, sans-serif;">I have tried this through the <a href="https://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2981" target="_blank">QODBC Support Wizard</a> and a C# program.</span>&nbsp;</p>
<div>
<h4><span style="color: #3366ff;">Solution:</span>&nbsp;</h4>
</div>
<div>Please ensure the SQL statement generated by your application is as per the following example. Please ensure the date format is correct.</div>
<div>&nbsp;</div>
<div>UPDATE customer<br />SET jobStartDate = {d'2022-11-18'}<br />WHERE ListID = 'YourListIDValue'&nbsp;</div>
<p><span style="color: #3366ff; font-family: arial, helvetica, sans-serif;">&nbsp;</span></p>
<p><span style="color: #000000; font-family: arial, helvetica, sans-serif;">&nbsp;</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Could not Mark Transaction as Cleared in ClearedStatus Table ]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2434]]></link>
<guid isPermaLink="false"><![CDATA[f708f064faaf32a43e4d3c784e6af9ea]]></guid>
<pubDate><![CDATA[Wed, 29 Feb 2012 08:44:01 +0000]]></pubDate>
<dc:creator><![CDATA[Wilson (QODBC Support)]]></dc:creator>
<description><![CDATA[ClearedStatus Table problem
Troubleshooting: Could not Mark Transaction as Cleared in ClearedStatus Table 
Problem Description 1: 
Try to Mark a transfer-type transaction as cleared in the ClearedStatus table via the statement:
INSERT INTO ClearedStat...]]></description>
<content:encoded><![CDATA[<p>ClearedStatus Table problem</p>
<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting: Could not Mark Transaction as Cleared in ClearedStatus Table </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;">Try to Mark a transfer-type transaction as cleared in the ClearedStatus table via the statement:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">INSERT INTO ClearedStatus (TxnID, ClearedStatus) VALUES ('xxxxxxxxx,' 'Cleared') </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">But get the error below:</span></p>
<p>[QODBC] Error: 3000 - the given object ID "XXXXX-XXXXXXXXXX" in the field "txn id" is invalid.</p>
<p align="center"><span style="font-family: Arial,Helvetica,sans-serif;"><img src="//support.flexquarters.com/esupport/newimages/clearedstatus.JPG" alt="" /></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;">Not all transactions can be marked as cleared. You cannot mark a transfer transaction as Cleared in QuickBooks because the transfer record is created. It is already considered cleared in QuickBooks. You could not mark a cleared transaction as "Cleared." </span></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;">Try to set the invoice cleared, I can perform this transaction can be set cleared in QuickBooks, but I get the error when using QODBC: </span></p>
<p>[QODBC] Error: 3170 - There was an error when modifying a ClearedStatus. QuickBooks error message: The cleared status can only be set if the line item account is of a balance sheet type.</p>
<p align="center"><span style="font-family: Arial,Helvetica,sans-serif;">x&nbsp;<img src="//support.flexquarters.com/esupport/newimages/clearedstatus 1.JPG" alt="" /></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 verify if your transaction is using nominal accounts for your transactions. ClearedStatus can only be inserted with a transaction related to a balance sheet-type account. Balance sheet-type accounts include Current Assets, Fixed Assets, Long-term Liability, and other real accounts. </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Could not Find Data in ItemSites Table QuickBooks]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2428]]></link>
<guid isPermaLink="false"><![CDATA[cc0991344c3d760ae42259064406bae1]]></guid>
<pubDate><![CDATA[Fri, 10 Feb 2012 06:57:22 +0000]]></pubDate>
<dc:creator><![CDATA[Wilson (QODBC Support)]]></dc:creator>
<description><![CDATA[The item Sites table contains no data
Troubleshooting: Could not Find Data in ItemSites Table QuickBooks
Problem Description: 
When referring to Intuit SDK OSR, a subject named Item Site can be found. It stores the quantities for each item by the site....]]></description>
<content:encoded><![CDATA[<p>The item Sites table contains no data</p>
<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting: Could not Find Data in ItemSites Table QuickBooks</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 referring to Intuit SDK OSR, a subject named Item Site can be found. It stores the quantities for each item by the site. But I could not find any data in this table in 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;">First, to use the Item Sites table, you must enable the multiple inventory sites to feature in QuickBooks. You can turn on this feature via the following steps:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">1 Choose Edit &gt; Preferences. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">2 Choose Items &amp; Inventory. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">3 Click the Company Preferences tab. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">4 Click the Advanced Inventory Settings button. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">5 Select the Multiple Inventory Sites enabled checkbox. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">And you could add inventory sites via the following steps:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">1 Choose Lists &gt; Inventory Site List. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">2 Click the Site button at the bottom of the Site List and select New. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">3 Enter the appropriate information. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Now you can view the newly added information in the InventorySites table using QODBC.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><strong>ATTENTION</strong>: if you use QuickBooks Premier Edition, all tables related to multiple inventory sites will NOT be available. Because this feature is not included in this Edition. </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Can't Mark Fund Transfer as &quot;Cleared&quot; ]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2425]]></link>
<guid isPermaLink="false"><![CDATA[f83630579d055dc5843ae693e7cdafe0]]></guid>
<pubDate><![CDATA[Tue, 07 Feb 2012 08:03:35 +0000]]></pubDate>
<dc:creator><![CDATA[Wilson (QODBC Support)]]></dc:creator>
<description><![CDATA[QODBC can't mark fund transfers as cleared
Troubleshooting: Can't Mark Fund Transfer as "Cleared" 
Problem Description: 
Want to use QODBC to mark a fund transfer transaction as "Cleared" but don't know how to do it? Try to modify the field Transaction...]]></description>
<content:encoded><![CDATA[<p>QODBC can't mark fund transfers as cleared</p>
<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting: Can't Mark Fund Transfer as "Cleared" </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;">Want to use QODBC to mark a fund transfer transaction as "Cleared" but don't know how to do it? Try to modify the field TransactionPaidStatusFilter, but QODBC reports that this field could not be updated or inserted.</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 Intuit SDK, the field TransactionPaidStatusFilter is valued by the system automatically and cannot be inserted or updated. It is only used to view those cleared transactions quickly.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">There is no so-called "cleared status" in fund transfer transactions. In QuickBooks, once the fund transfer is built and saved, the system automatically marks it as cleared. No matter if you send the application to the bank or not. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Of Course, you can build a transfer record first and then finish the jobs later by unchecking the Online Funds Transfer option. Still, at this time, QuickBooks will remind you that this record has been finished in QuickBooks and suggest you complete this transaction in the near future: </span></p>
<p align="center"><span style="font-family: Arial,Helvetica,sans-serif;"><img src="//support.flexquarters.com/esupport/newimages/fund transfer.jpg" alt="" /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Why Special Character Turns into a &quot;?&quot; When Exporting]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2420]]></link>
<guid isPermaLink="false"><![CDATA[7993e11204b215b27694b6f139e34ce8]]></guid>
<pubDate><![CDATA[Fri, 04 Nov 2011 03:29:16 +0000]]></pubDate>
<dc:creator><![CDATA[Juliet]]></dc:creator>
<description><![CDATA[Why &lt;g class="gr_ gr_25 gr-alert gr_gramm gr_hide gr_inline_cards gr_run_anim Grammar multiReplace replaceWithoutSep replaceWithoutSep" id="25" data-gr-id="25"&gt;Special Character Turns&lt;/g&gt; into &lt;g class="gr_ gr_26 gr-alert gr_gramm gr_inline...]]></description>
<content:encoded><![CDATA[<p>Why &lt;g class="gr_ gr_25 gr-alert gr_gramm gr_hide gr_inline_cards gr_run_anim Grammar multiReplace replaceWithoutSep replaceWithoutSep" id="25" data-gr-id="25"&gt;Special Character Turns&lt;/g&gt; into &lt;g class="gr_ gr_26 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" id="26" data-gr-id="26"&gt;a ?&lt;/g&gt; When Exporting</p>
<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting: Why Special Character Turns into a "?" When Exporting</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;">Input some data into QuickBooks in which some special characters such as "?"; these special characters all turn into "?" when this data is exported from QODBC. Can QODBC export this Special Character?</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;">We are sorry to tell you that a few special characters are not allowed or are turned to due to the limitation on how XML request is processed (by QuickBook SDK ). </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting :QuickBooks Error: Transaction Not in Balance]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2419]]></link>
<guid isPermaLink="false"><![CDATA[020bf2c45e7bb322f89a226bd2c5d41b]]></guid>
<pubDate><![CDATA[Fri, 04 Nov 2011 03:22:37 +0000]]></pubDate>
<dc:creator><![CDATA[Juliet]]></dc:creator>
<description><![CDATA[Troubleshooting: QuickBooks Error: Transaction Not in Balance
Problem Description
The QODBC report Error: 3180-There was an error when saving a General Journal transaction. 
QuickBooks error message: Transaction not in balance. 
When trying to do some...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting: QuickBooks Error: Transaction Not in Balance</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 QODBC report Error: 3180-There was an error when saving a General Journal transaction. </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">QuickBooks error message: Transaction not in balance. </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">When trying to do some insert or upgrade work to Journal Entry. </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;">When we insert or update toward Journal Entry, the credit and debit lines must be kept in balance in one account. </span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Sample Query</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Here is an example:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> INSERT INTO "JournalEntryCreditLine" ("JournalCreditLineAccountRefListID","RefNumber", "JournalCreditLineEntityRefListID", "JournalCreditLineAmount", "JournalCreditLineMemo", " FQSaveToCache ") VALUES ('20000-934380912','1', '120000-933270541', 1.11, 'Test Memo 1', 1 ) </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> INSERT INTO "JournalEntryDebitLine" ("JournalDebitLineAccountRefListID","RefNumber", "JournalDebitLineEntityRefListID", "JournalDebitLineAmount", "JournalDebitLineMemo", " FQSaveToCache ") VALUES ('8000008F-1197954502','1', '120000-933270541', 1.11, 'Test Memo 1', 0 ) </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><strong>Note:&nbsp;</strong>The JournalCreditLineAmout in CreditLine must equal JournalDebitLineAmount in DebitLine. Also, please note the FQSaveToCache field. It should be 0 only in the last line.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">If you want to know more about creating Journals Entries, please refer to <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/1618">How to create Journal Entries using QODBC</a>&nbsp;for more.</span></p>
<p>Keywords:&nbsp;accountlistid</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Problems with Date Format]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2407]]></link>
<guid isPermaLink="false"><![CDATA[97416ac0f58056947e2eb5d5d253d4f2]]></guid>
<pubDate><![CDATA[Tue, 30 Aug 2011 06:02:26 +0000]]></pubDate>
<dc:creator><![CDATA[Juliet]]></dc:creator>
<description><![CDATA[Problem With Date Format
Troubleshooting: Problems with the Date Format
Problem Description 1:
When you want to filter records by date, input a query like the one below:
select top 1 * from DepositLine WHERE TimeCreated &lt; '2011-06-06' ORDER BY Time...]]></description>
<content:encoded><![CDATA[<p>Problem With Date Format</p>
<h2><span class="style1"><span id="6f6f3a9f-a5b3-47fc-b57c-8eb8e66c7c50" class="GINGER_SOFTWARE_mark"><span id="91eac47c-fd8b-4cc4-b3f5-76bd14c2adac" class="GINGER_SOFTWARE_mark">Troubleshooting</span></span>: Problems with the Date Format</span></h2>
<h3><span class="style2" style="color: #3366ff;">Problem Description 1:</span></h3>
<p><span class="style3">When you want to filter <span id="648c8189-2837-4965-b3dc-abf62a5fca8c" class="GINGER_SOFTWARE_mark">records</span> by date, input a query like the one below:</span></p>
<p class="style3"><span id="31b9b2e9-cb18-4a8c-a91a-6deed49dd76e" class="GINGER_SOFTWARE_mark"><span id="50ac3df4-c7cd-4a22-a5c0-63f1990df32c" class="GINGER_SOFTWARE_mark">select</span></span> top 1 * from <span id="300b1dc0-55a7-4cf2-9cc0-e79205085396" class="GINGER_SOFTWARE_mark"><span id="b450be79-3ad7-41e9-9f11-3a55e243c9fd" class="GINGER_SOFTWARE_mark">DepositLine</span></span> WHERE TimeCreated &lt; '2011-06-06' ORDER BY TimeCreated DESC</p>
<p class="style3">But the system <span id="084c3fed-7109-45da-b0bb-17c43e12fa26" class="GINGER_SOFTWARE_mark"><span id="dff10458-c69e-4541-80f6-c40080c34c27" class="GINGER_SOFTWARE_mark">returns</span></span> the following error:</p>
<p class="style3">[QODBC] Invalid operand for <span id="f7dedba2-be25-4885-bfbe-04761807899f" class="GINGER_SOFTWARE_mark"><span id="51365c9e-dbb1-4779-9126-a3b587450a13" class="GINGER_SOFTWARE_mark">operator</span></span></p>
<h3 class="style3 style4"><span style="color: #3366ff;">Solution 1:</span></h3>
<p class="style3 style5">The time data in QODBC <span id="e47dfb23-6c05-4927-8b3d-8b376cdba61a" class="GINGER_SOFTWARE_mark"><span id="34db08ec-75c2-4757-b05c-db801f0c6323" class="GINGER_SOFTWARE_mark">has</span></span> its formation. The date type format is {d 'YYYY-MM-DD'} and the time stamps format is {ts 'YYYY-MM-DD HH<span id="76f711a3-4563-4e29-9794-79cb5cb7d9a0" class="GINGER_SOFTWARE_mark"><span id="e383ac01-a915-41b1-a31e-4d53d7ca37f7" class="GINGER_SOFTWARE_mark">:</span></span>MM<span id="e4bc8720-863f-4992-a654-eb811c80bd60" class="GINGER_SOFTWARE_mark"><span id="9afef87f-a085-4e11-ae7d-5aeed80d6206" class="GINGER_SOFTWARE_mark">:&nbsp;</span></span>SS.SSS'} The time created field is timestamp&nbsp;type, so the correct query should be like the below:</p>
<p class="style3 style5"><span class="style3">SELECT TOP 1 * from <span id="31bfafc2-56a9-4b71-9cfe-3abcf089a93d" class="GINGER_SOFTWARE_mark"><span id="3388105b-34ec-490d-87fe-3ae7a7076451" class="GINGER_SOFTWARE_mark">DepositLine</span></span> WHERE TimeCreated &lt; {ts '2011-06-06 00:00:00.000'} ORDER BY TimeCreated DESC </span></p>
<p class="style3 style5">Please refer to&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2203">How are dates formatted in SQL queries when using the QuickBooks generated timestamps</a> for more instructions.</p>
<p class="style3 style5">&nbsp;</p>
<h3><span style="color: #3366ff;"><strong>Problem Description 2:</strong></span><strong>&nbsp;</strong></h3>
<p><span class="style3">Using SQL Server 2008, I have a table with a date field using the format <span id="72cfba93-9d78-4090-b3fc-6dee971d1e42" class="GINGER_SOFTWARE_mark"><span id="6b657f1e-984f-4b6c-b90f-6a5989f54e50" class="GINGER_SOFTWARE_mark">date time</span></span>.</span></p>
<p><span class="style3">I select from that table a <span id="bc4df40e-f832-417a-98a7-bf960d9deb04" class="GINGER_SOFTWARE_mark"><span id="be70851a-c225-4f85-9f1c-a59ff0c37f05" class="GINGER_SOFTWARE_mark">date time</span></span> variable:</span></p>
<p><span class="style3"><span id="8f3495fd-60a2-4b13-af34-9400db0edfc1" class="GINGER_SOFTWARE_mark"><span id="04285b58-0172-433b-8bf8-42e6266b48e7" class="GINGER_SOFTWARE_mark">set</span></span> @vDATE = (Select [DATE] from <span id="8c8b4eb0-eaae-45c9-9860-ecc3585cea7a" class="GINGER_SOFTWARE_mark"><span id="537fea95-5345-4c90-b0a8-08d195ab7185" class="GINGER_SOFTWARE_mark">dbo</span></span><span id="79839a9e-c4d6-4053-950d-1f0267223527" class="GINGER_SOFTWARE_mark"><span id="5997072b-a13b-48a7-bb1b-3512ebe1c05f" class="GINGER_SOFTWARE_mark">.</span></span>OrderHeader where <span id="9e59f12a-1005-49fb-8f5d-26a1fa37e709" class="GINGER_SOFTWARE_mark"><span id="52b0dc31-f727-4982-8b7b-b02864e6af21" class="GINGER_SOFTWARE_mark">dbo</span></span><span id="e2bbc76c-8a90-4b5c-b913-11e76767cdfb" class="GINGER_SOFTWARE_mark"><span id="0013f5fe-d803-4bdc-8e07-72cb20b9a7cf" class="GINGER_SOFTWARE_mark">.</span></span>OrderHeader<span id="c15e97a7-ccbe-4886-81f7-a7b93ea202c5" class="GINGER_SOFTWARE_mark"><span id="bc1ab3a9-1e53-4ae8-91b8-132f5cbb2596" class="GINGER_SOFTWARE_mark">.</span></span>REFNO = @RefNo)</span></p>
<p><span class="style3">I then convert that date to the QODBC format using this logic:</span></p>
<p><span class="style3">Set @vDATE = '{d''' + Left<span id="a95f7900-83e5-4a35-bff8-bde3505ac8db" class="GINGER_SOFTWARE_mark"><span id="1b76a510-b9b4-450b-a287-f1012f77f864" class="GINGER_SOFTWARE_mark">(</span></span>CONVERT<span id="fe9000e7-5657-40f8-afbd-3444c2b19e76" class="GINGER_SOFTWARE_mark"><span id="b3545904-e942-4d55-bc27-9f91602ea640" class="GINGER_SOFTWARE_mark">(</span></span>nvarchar<span id="2b317204-ae03-4cf5-9c0f-ff182afb40b8" class="GINGER_SOFTWARE_mark"><span id="74354150-8b2c-40a7-84a3-2f84b77e4e41" class="GINGER_SOFTWARE_mark">(</span></span>30), @vDATE, 121)<span id="a001c011-1a19-4068-a76d-6e9febc1c720" class="GINGER_SOFTWARE_mark"><span id="76ba3d5b-13d0-44a1-8960-22a268137720" class="GINGER_SOFTWARE_mark">,</span></span>10) + '''}'</span></p>
<p><span class="style3">If I run that logic in a Query window by itself, it results in a string of "{<span id="472551cf-79fe-4c56-9861-a6a01533e38d" class="GINGER_SOFTWARE_mark"><span id="bf546cd9-eb14-4c25-88c1-3cdb495dc9e8" class="GINGER_SOFTWARE_mark">d'yyyy</span></span>-mm-<span id="e6914698-c05d-4e55-ab75-8ee0efda1474" class="GINGER_SOFTWARE_mark"><span id="b59b6c30-dc8d-4d34-9407-2e3d0be9a24a" class="GINGER_SOFTWARE_mark">dd</span></span>'}."</span></p>
<p><span class="style3">But when the full script is run, I get this error message:</span></p>
<p><span class="style3">"<span id="f3da5a0a-8ec1-4d98-9315-47a4aef73d73" class="GINGER_SOFTWARE_mark"><span id="8e8517f6-01ed-49ff-9960-30e81a5ef036" class="GINGER_SOFTWARE_mark">Msg</span></span> 241, Level 16, State 1, Line 102</span></p>
<p><span class="style3">Conversion failed when converting date and time from character string."</span></p>
<p><span class="style3">If I manually set the date to "Set @vShipDate = {d'2014-10-14'}" it works fine</span></p>
<p><span class="style3">Also, "select ('{d''' + Left<span id="8a76f6bb-063a-4a54-8d47-6ac279f4d5dd" class="GINGER_SOFTWARE_mark"><span id="df59b56f-3740-4ec2-a58d-de32c9942189" class="GINGER_SOFTWARE_mark">(</span></span>CONVERT<span id="a0896fa5-df72-4797-aa92-410239a20047" class="GINGER_SOFTWARE_mark"><span id="466814c3-be39-4f9e-abcb-12d42bdf387b" class="GINGER_SOFTWARE_mark">(</span></span>nvarchar<span id="1c024d15-d626-4afa-aa6f-a84c4cfe0d93" class="GINGER_SOFTWARE_mark"><span id="07d0b1a1-bab9-41b2-a58e-b66c5eb28842" class="GINGER_SOFTWARE_mark">(</span></span>30), DATE, 121)<span id="39d25f98-dbf2-4795-ab01-fced9ad5ffb5" class="GINGER_SOFTWARE_mark"><span id="4d4a0f9b-82b7-4674-8537-6f1b93e2bd52" class="GINGER_SOFTWARE_mark">,</span></span>10) + '''}') from order header" results in a date string with QODBC formatting</span></p>
<p><span class="style3">So what's wrong with this process?</span></p>
<p><strong>&nbsp;</strong></p>
<h3><span style="color: #3366ff;"><strong>Solution 2:</strong></span></h3>
<p><span class="style3">I would like to inform you that there is no need for conversion, just declare the date parameter as <span id="ba9a069c-8e31-4ab9-8337-b64ac4cd2353" class="GINGER_SOFTWARE_mark">date time</span> <span id="a7591789-2339-4503-a173-67b8572a92be" class="GINGER_SOFTWARE_mark">data type</span> &amp; set the value of the parameter &amp; use its value in the insert statement.</span><br /> <br /><span class="style3"> Please refer to the sample query.</span><br /> <br /><span class="style3"> Note: Please change the value according to your company data.</span><br /> <br /><span class="style3"> Declare @vDATE as <span id="5c7b951f-6408-4397-8336-5751b5777c7f" class="GINGER_SOFTWARE_mark"><span id="072f0f34-d06e-48d5-b2e4-4f590e3dc65f" class="GINGER_SOFTWARE_mark">datetime</span></span></span><br /><span class="style3"> Declare @vShipDate as <span id="c62a22e0-01b8-4f5a-b2a9-18c645d95686" class="GINGER_SOFTWARE_mark">DateTime</span></span><br /><span class="style3"> <span id="e3d51109-3a61-43de-ba62-29e591723f68" class="GINGER_SOFTWARE_mark">set</span> @vDATE='10/24/2014.'</span><br /><span class="style3"> <span id="bc6b6f56-75a2-4ab6-b36c-8532bbde4a98" class="GINGER_SOFTWARE_mark">set</span> @vShipDate='10/28/2014.'</span><br /> <br /><span class="style3"> INSERT INTO LinkedServerName<span id="a440a3a5-8c55-4e9a-b5a2-a741f45c1050" class="GINGER_SOFTWARE_mark">...</span>InvoiceLine (CustomerRefFullName, ARAccountRefFullName, TxnDate, <span id="e841aa3f-d7cd-4dcf-88c2-2daa6ee9b788" class="GINGER_SOFTWARE_mark">RefNumber</span><span id="a9ef045b-0b5b-4bfb-8fa9-07709b667ff3" class="GINGER_SOFTWARE_mark">,</span>InvoiceLineItemRefListID, InvoiceLineDesc, InvoiceLineRate,&nbsp;</span><br /><span class="style3"> InvoiceLineAmount, BillAddressAddr1, BillAddressAddr2, BillAddressCity, BillAddressState, BillAddressPostalCode, IsPending, TermsRefFullName, ShipDate, Memo, IsToBePrinted )</span><br /><span class="style3"> VALUES ('Smith, Lee<span id="d0d42ba3-2850-4b3f-95fb-885fb32ef3ec" class="GINGER_SOFTWARE_mark">:&nbsp;</span>Patio,' 'Accounts Receivable,' @vDATE, '76647', '240000-933272656', 'POWER TRAK-2000',&nbsp;</span><br /><span class="style3"> 200.00000, 200.00, 'Brad Lamb,' '1921 Appleseed Lane', 'Bayshore,' 'CA,' '94326', 0, 'Net 30', @vShipDate, 'Memo Test,' 0)<strong>&nbsp;</strong></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: &quot;Error parsing complete XML return string (8)&quot; in some Insert Statements]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2399]]></link>
<guid isPermaLink="false"><![CDATA[bc7f621451b4f5df308a8e098112185d]]></guid>
<pubDate><![CDATA[Thu, 19 Aug 2010 07:51:37 +0000]]></pubDate>
<dc:creator><![CDATA[Juliet]]></dc:creator>
<description><![CDATA[Troubleshooting: "Error parsing complete XML return string (8)" in some Insert Statements
Problem Description
Someone might get an error "[QODBC]Error parsing complete XML return string. " when running some inserts queries such as PurchaseOrders, Invoic...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting: "Error parsing complete XML return string (8)" in some Insert Statements</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;">Someone might get an error "[QODBC]Error parsing complete XML return string. " when running some inserts queries such as PurchaseOrders, Invoices, Vendors, etc. </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions</span><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">These turned out to be some bugs of QODBC, which have been fixed.&nbsp;</span><span style="font-family: Arial, Helvetica, sans-serif;">Please update your QODBC to the latest QODBC version and test again.</span></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, 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] How to write Deposits using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2115]]></link>
<guid isPermaLink="false"><![CDATA[bdc4626aa1d1df8e14d80d345b2a442d]]></guid>
<pubDate><![CDATA[Thu, 12 Mar 2009 17:21:52 +0000]]></pubDate>
<dc:creator><![CDATA[brad waddell]]></dc:creator>
<description><![CDATA[Two Examples of Writing Deposits 
Instructions
Note: Deposit inserts are done only to the DepositLine table. The Deposit table is a header table that cannot be inserted without cached DepositLine transactions.
Troubleshooting Note 
 &nbsp;&nbsp;&nbsp;...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Two Examples of Writing Deposits </span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Instructions</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><strong>Note</strong>: Deposit inserts are <span id="196759d3-4001-498f-9f05-3cd7923f9d9b" class="GINGER_SOFTWARE_mark">done</span> only to the <strong><span style="color: #000000;"><span id="f0b45182-4f18-4dca-8b0c-e1a824c58432" class="GINGER_SOFTWARE_mark">DepositLine</span></span></strong> table. <span id="fe0ac026-3970-41ab-aa3e-57c9590b0091" class="GINGER_SOFTWARE_mark">The Deposit</span> table is a header table that cannot be inserted without cached DepositLine transactions.</span></p>
<p><span style="color: #990000;"><strong><span style="font-family: Arial, Helvetica, sans-serif;"><span id="506a974f-4b84-44ca-9f6b-42753d92d063" class="GINGER_SOFTWARE_mark">Troubleshooting</span> Note </span></strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> &nbsp;&nbsp;&nbsp;&nbsp; If you <span id="aacc7887-580c-4e38-acd6-250e8aa3167e" class="GINGER_SOFTWARE_mark">encounter</span> the error below: </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> &nbsp;&nbsp;&nbsp;&nbsp; [QODBC] Error:<span id="c785c4cf-91f4-437f-a5ba-de55a560b5ea" class="GINGER_SOFTWARE_mark"></span> 3180 &ndash; There was an error when saving a deposit line. <span id="beb9379d-9bb5-4592-a695-5bb7b7ac2bde" class="GINGER_SOFTWARE_mark">QuickBooks</span> error message:<span id="2fdbbbde-b1a0-4b7b-ab18-562bdabed1a5" class="GINGER_SOFTWARE_mark"></span> <span style="color: #000000;">The Payment has been changed</span>. (#10053). </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> &nbsp;&nbsp;&nbsp;&nbsp; Switch your company file to Single User Mode. This is a "confirmed by Intuit" bug in QuickBooks 2004 through 2006 and only occurs when you try to do a deposit with the company file in multi-user mode.<br /> <br />&nbsp;&nbsp;&nbsp;&nbsp; Below are two examples.</span></p>
<h3><span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: #0066cc;">DEPOSIT FROM RECEIVE PAYMENTS MADE TO UNDEPOSITED FUNDS</span></span></h3>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Locate the Payment TxnID</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The first step is to locate the payment <span style="color: #0000ff;">TxnID</span> made to undeposited funds. To do this, you run the following query in QODBC Test Tool:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SELECT <span style="color: #0000ff;">TxnID</span>, CustomerRefFullName, RefNumber, Amount FROM ReceivePaymentToDeposit</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img src="https://support.flexquarters.com/esupport/newimages/2115/Q1.png" alt="" /></span></p>
<p><strong><br /> <strong>Note:</strong>&nbsp;</strong>&nbsp;<a href="https://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2981" target="_blank">QODBC Support Wizard</a> is used only to test QODBC SQL queries and is not a development tool.</p>
<p>&nbsp;</p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Confirm the Exact Name of the Bank Account </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The second step is to confirm the exact name of the <span style="color: #990000;">Bank Account</span> you want to deposit the payment. To do this, you run the following query in QODBC Test Tool:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SELECT ListID, <span style="color: #990000;">Name</span> FROM Account where Name = <span style="color: #000000;">'<span style="color: #990000;">Company Savings Account</span>'</span></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img src="https://support.flexquarters.com/esupport/newimages/2115/Q2.png" alt="" /></span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Receive payment made to Undeposited Funds </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; You're ready to receive the payment made to undeposited funds using the <span style="color: #0000ff;">TxnID</span> and <span style="color: #800000;">Bank Account Name</span> found above. To do this, you run the following query in QODBC Test Tool:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; INSERT INTO DepositLine (DepositLinePaymentTxnID, DepositToAccountRefFullName,TxnDate,FQSaveToCache) <br />&nbsp;&nbsp;&nbsp; Values (<span style="color: #000000;">'<span style="color: #0000ff;">8BFF-1481801824</span>','<span style="color: #990000;">Company Savings Account</span>'</span>,{d'2021-12-20'},0)</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img src="https://support.flexquarters.com/esupport/newimages/2115/Q3.png" alt="" /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; You will receive the "Executed Successfully" message if your above input details are correct.</span></p>
<h3><span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: #0066cc;">DEPOSIT MADE DIRECTLY FROM THE DEPOSIT WINDOW</span></span></h3>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Query in QODBC Test Tool&nbsp;</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; INSERT INTO <span style="color: #0000ff;">DepositLine </span>(DepositLineAccountRefFullName,DepositLineAmount,DepositLineCheckNumber,<br />&nbsp;&nbsp;&nbsp;&nbsp; DepositLineEntityRefFullName,DepositLineMemo,DepositLinePaymentMethodRefFullName,<br />&nbsp;&nbsp;&nbsp;&nbsp; DepositToAccountRefFullName,Memo,TxnDate,<span style="color: #ff0000;">FQSaveToCache</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp; Values ('Interest Income',2000,'PANDA4567','2V:Panda Industries','Panda<br />&nbsp;&nbsp;&nbsp;&nbsp; memo','Check','BankNorth','Deposit',{d'2021-02-17'},<span style="color: #ff0000;">0</span>)</span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Table Schema Rules for DepositLine </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><strong>Note</strong>: Use the columns stored procedure in QODBC Test Tool to get the EXACT table schema rules for the QuickBooks Company file you have open. The last few columns have Queryable, Updateable, Insertable, and Required_On_Insert i.e.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: #6600cc;">&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #000000;">sp_columns</span></span> <span style="color: #0000ff;">DepositLine</span></span></p>
<p><span style="color: #990000;"><strong><span style="font-family: Arial, Helvetica, sans-serif;">FQSaveToCache</span></strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Multi-line inserts require a series of SQL statements to complete a single deposit. The key to this process is the field named "<span style="color: #ff0000;">FQSaveToCache</span>". This field is not part of the table but is used as a flag to the QODBC driver to cache the inserts until you're ready to commit all the inserts. The value of "<span style="color: #ff0000;">FQSaveToCache</span>" is set to <span style="color: #ff0000;">1</span> or <span style="color: #ff0000;">TRUE</span> for the insert SQL statements for the first lines in the deposit, and then it is set to <span style="color: #ff0000;">0</span> or <span style="color: #ff0000;">FALSE</span> for the <strong>final</strong> SQL statement, the last line of your multi-line deposit.<br /> <br />&nbsp;&nbsp;&nbsp;&nbsp; The 0 or False "FQSaveToCache" value tells QODBC to write all the SQL inserts as multiple lines for the one deposit (header row record).</span></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">DEPOSIT CASH FROM AN EXTERNAL POS SYSTEM</span></h3>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Locate List IDs </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; To deposit cash, you must locate the List IDs for your posting. For example:</span></p>
<p><span style="color: #800000; font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; 3C0000-1106175506</span><span style="font-family: Arial, Helvetica, sans-serif;"> is GL Bank Account List ID<br /> <span style="color: #003366;">&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #0000ff;">3E0000-1130003331</span></span> is AR Account List ID</span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Insert Statement</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; INSERT INTO "DepositLine" ("TxnDate", "<span style="color: #800000;">DepositToAccountRefListID</span>", "Memo", "<span style="color: #0000ff;">DepositLineAccountRefListID</span>", "DepositLineAmount") VALUES ({d'2021-10-27'}, <span style="color: #800000;">'3C0000-1106175506'</span>, 'POS Cash Deposit', <span style="color: #000000;">'<span style="color: #0000ff;">3E0000-1130003331</span></span><span style="color: #003366;">'</span>, 5.50)<br /> <br /> <strong>Note</strong>: Never use DepositTotal, always use DepositLineAmount.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Keywords:&nbsp;accountlistid,&nbsp;accountname missing stored procedure, Receive,&nbsp;how to fix things after you dd an error on your reference while depositing,&nbsp;how to deposit a payment without an invoice</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to create Multiple Invoices with Multiple Line Items using Access 2003 and QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/1007]]></link>
<guid isPermaLink="false"><![CDATA[d7322ed717dedf1eb4e6e52a37ea7bcd]]></guid>
<pubDate><![CDATA[Thu, 12 Mar 2009 17:21:52 +0000]]></pubDate>
<dc:creator><![CDATA[brad waddell]]></dc:creator>
<description><![CDATA[ Troubleshooting: How to create Multiple Invoices with Multiple Line Items using Access 2003 and QODBC 
&nbsp;
Problem Description 1 
&nbsp;&nbsp;&nbsp;&nbsp; I use MS Access 2003 to generate calculated totals for invoices I need to post into QB. 
&nb...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;"> <span id="cb8697c5-4bc5-48fc-b782-9beb15d0bb5f" class="GINGER_SOFTWARE_mark">Troubleshooting</span>: How to create Multiple Invoices with Multiple Line Items using Access 2003 and QODBC </span></h2>
<p><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">&nbsp;</span></p>
<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 use MS Access 2003 to generate calculated totals for invoices I need to post into QB. </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Using an Append Query, I have been able to upload Invoices successfully. However, <span id="3ee87cc0-2812-4312-9efc-67f61a71f24e" class="GINGER_SOFTWARE_mark">all</span> the line items show up on one invoice, and the first customer appears in the invoice header info even though there are four customers.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; I have one Append Query that uploads the Line Items to the InvoiceLine Table and a second Append Query that uploads the Header information to the Invoice table (which I receive an error when I run it, but the invoice turns up in QB anyway). I'm using an Auto number field to create the Invoice Number (<span id="d5b7fb2d-8e3e-4567-8fde-98867ed5354e" class="GINGER_SOFTWARE_mark">RefNumber</span>) - could the error be because they are different data types?</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; What do I have to create multiple invoices with multiple line items?</span></p>
<p><strong>Note: </strong>The primary rule is first to save the data to the child record. The child record for each parent/child pair has all the data required by the parent record.<br />&nbsp; Please do not close the connection between the Insert of Child / Header &amp; sp_lastinsertID; otherwise, you will not be able to get the last inserted ID.</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions 1 - Tutorial about Creating Invoices</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Try looking at the links below: </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2583" target="_blank">Inserting invoice lines built from external data using MS Access</a> </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> &nbsp;&nbsp;&nbsp;&nbsp; <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2389" target="_blank">How to create Invoices using QODBC</a></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> &nbsp;&nbsp;&nbsp;&nbsp; <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2346" target="_blank">A detailed tutorial on how to create a multi-line invoice</a></span></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; The first article looks like the invoice is already assigned a TxnID in QuickBooks and the second option has the steps I followed to create the invoice, but I still ended up with only one invoice with all the line items in it. My <span id="bc366ad5-e12e-442d-856f-1e2d1cb783b9" class="GINGER_SOFTWARE_mark">ListID</span> fields are being taken directly from QuickBooks.</span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>SQL View of the 1st Access Query I created (to append line items)</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">INSERT INTO InvoiceLine ( TxnDate, <span style="color: #000000;"><strong>CustomerRefListID</strong></span>, InvoiceLineItemRefListID, InvoiceLineDesc, InvoiceLineRate, InvoiceLineQuantity, FQSaveToCache, RefNumber )<br />SELECT [1-PostedInvoiceTotals]<span id="d29d58fc-5d4e-43f7-a300-0cdc476ccf2b" class="GINGER_SOFTWARE_mark">.</span>InvoiceDate, [1-PostedInvoiceTotals]<span id="fae909c7-9ecc-4f74-9c6a-886b0d3e97a9" class="GINGER_SOFTWARE_mark">.</span>CustomerRefListId, [1-PostedInvoiceTotals]<span id="5b142260-4eec-4764-89aa-010c7b5963fa" class="GINGER_SOFTWARE_mark">.</span>InvoiceLineItemRefListID, [1-PostedInvoiceTotals]<span id="feef642c-5bb7-4bac-8714-9e89ab4918fa" class="GINGER_SOFTWARE_mark">.</span>Name, [1-PostedInvoiceTotals]<span id="d04bd205-d04f-4179-9195-99c57e1a8e77" class="GINGER_SOFTWARE_mark">.</span>GrandTotal, 1 AS Qty, [1-PostedInvoiceTotals]<span id="0afa3db9-d506-46bc-8d9c-5e906928b216" class="GINGER_SOFTWARE_mark">.</span>FQSaveToCache, [1-PostedInvoiceHeaderTotals]<span id="fc9dc7e4-558e-412a-9727-1ee2fbc41405" class="GINGER_SOFTWARE_mark">.</span><span id="e912835f-84b4-46dd-bfe4-64329cbc26d9" class="GINGER_SOFTWARE_mark">InvoiceNumber</span><br />FROM [1-PostedInvoiceHeaderTotals] INNER JOIN (LocalCustomer INNER JOIN [1-PostedInvoiceTotals] ON LocalCustomer<span id="8a2d7812-260f-4c70-9c67-a845e1e625d3" class="GINGER_SOFTWARE_mark">.</span>ListID = [1-PostedInvoiceTotals]<span id="82bcf7d6-ee4b-44b4-8c7d-5602e1253e0d" class="GINGER_SOFTWARE_mark">.</span>CustomerRefListId) ON [1-PostedInvoiceHeaderTotals]<span id="526e512b-3e22-410e-893d-7c97be22a45b" class="GINGER_SOFTWARE_mark">.</span>CustomerRefListId = [1-PostedInvoiceTotals]<span id="16e0df1b-81e4-47d8-9b2f-eb511417f672" class="GINGER_SOFTWARE_mark">.</span>CustomerRefListId;</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: #000000;"><strong>NOTE</strong>: <strong>CustomerRefListID</strong> should not be used here</span></span></p>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Second Query (to post the Header Info):</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">INSERT INTO Invoice ( RefNumber, TxnDate, CustomerRefListID, CustomerRefFullName, ARAccountRefListID, BillAddressAddr1, BillAddressAddr2, BillAddressAddr3, BillAddressAddr4, BillAddressCity, BillAddressState, BillAddressPostalCode, ShipAddressAddr1, ShipAddressAddr2, ShipAddressAddr3, ShipAddressAddr4, ShipAddressCity, ShipAddressState, ShipAddressPostalCode )<br />SELECT [1-PostedInvoiceHeaderTotals].InvoiceNumber, [1-PostedInvoiceHeaderTotals].InvoiceDate, [1-PostedInvoiceHeaderTotals].CustomerRefListId, [1-PostedInvoiceHeaderTotals].CustomerRefFullName, [1-PostedInvoiceHeaderTotals].ARAccountRefListID, [1-PostedInvoiceHeaderTotals].BillAddressAddr1, [1-PostedInvoiceHeaderTotals].BillAddressAddr2, [1-PostedInvoiceHeaderTotals].BillAddressAddr3, [1-PostedInvoiceHeaderTotals].BillAddressAddr4, [1-PostedInvoiceHeaderTotals].BillAddressCity, [1-PostedInvoiceHeaderTotals].BillAddressState, [1-PostedInvoiceHeaderTotals].BillAddressPostalCode, [1-PostedInvoiceHeaderTotals].ShipAddressAddr1, [1-PostedInvoiceHeaderTotals].ShipAddressAddr2, [1-PostedInvoiceHeaderTotals].ShipAddressAddr3, [1-PostedInvoiceHeaderTotals].ShipAddressAddr4, [1-PostedInvoiceHeaderTotals].ShipAddressCity, [1-PostedInvoiceHeaderTotals].ShipAddressState, [1-PostedInvoiceHeaderTotals].ShipAddressPostalCode<br />FROM [1-PostedInvoiceHeaderTotals];</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I WANT 4 <span id="adc67567-ff02-4563-a90b-fd9fd5b60360" class="GINGER_SOFTWARE_mark">invoices, but</span> in Quickbooks, only one is created. I'm trying to develop Multiple Invoices with Multiple Line Items in each invoice.</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions 2 - Syntax Related </span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> &nbsp;&nbsp;&nbsp;&nbsp; When we create an invoice with three lines, we use 3 InvoiceLine INSERT commands (with the <span style="color: #0000ff;">FQSaveToCache</span> caching flag set true "<span style="color: #0000ff;">1</span>") followed by the Invoice table (header) insert, which is automatically designed to pull in all cached InvoiceLine records and save immediately. The Invoice table only shows one row of each invoice. To see all the invoices and lines in <span id="7d3f897d-f25c-4743-aabb-287ef9a5bba7" class="GINGER_SOFTWARE_mark">an</span> invoice, you need to look at the InvoiceLine table. </span></p>
<h3><br /> <span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description 3 </span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; When I look at the InvoiceLine Table<span id="a516e4be-2a9b-449e-9c48-cb26581ef427" class="GINGER_SOFTWARE_mark">,</span> QuickBooks has applied the first customer number to all of the Line Items, even though there were four different customer numbers (that match customer in QB) in the data. (I guess that's why I get only one invoice). How do I tell it to create one invoice per customer?</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions 3 - Sample Query </span></h3>
<p><span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"><strong>Example 1 </strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Do single line invoices as a single SQL INSERT with all the CUSTOMER detail and FQSaveToCache FALSE (0):</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">INSERT INTO "InvoiceLine" ("CustomerRefListID", "ClassRefListID", "RefNumber", <br />"<span id="679326a3-4d93-43d9-901f-04286e9350b0" class="GINGER_SOFTWARE_mark">InvoiceLineItemRefListID</span>", "InvoiceLineDesc", "InvoiceLineRate", <br />"<span id="e2827def-864f-4091-b6a9-6643795b6ade" class="GINGER_SOFTWARE_mark">InvoiceLineAmount</span>", "InvoiceLineSalesTaxCodeRefListID", "FQSaveToCache") <br />VALUES ('470001-1071525403', '30000-933272658', 'QODBCClass2', '250000-933272656', <br />'Building <span id="f7c6a4b3-8cf6-4d8b-902b-1ac35c66d449" class="GINGER_SOFTWARE_mark">permit</span> Additional Room', 100.00000, 100.00, '20000-999022286', 0)</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> &nbsp;&nbsp;&nbsp; When FQSaveToCache is set to false or the header insert is executed (after lines have been cached), the cache lines of the invoice will get <span id="d701e08a-feab-428d-bf25-d0c1f2dd5d42" class="GINGER_SOFTWARE_mark">written</span>. </span></p>
<p><span style="color: #990000;"><strong><span style="font-family: Arial, Helvetica, sans-serif;">Example 2 </span></strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; The last example will give you 29 invoices; the other time, you will get one invoice with four lines. So you need to check the FQSaveToCache logic in your append queries. For <span id="974860ba-0fc9-4e29-8960-2f4620dc74f6" class="GINGER_SOFTWARE_mark">example, for</span> two invoices with two lines in each, I do the following:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span id="96240c6c-8af7-44df-a8e5-c86c47343747" class="GINGER_SOFTWARE_mark">insert</span> <span id="a9d300c1-0a92-4b3c-a984-a7ff191471b1" class="GINGER_SOFTWARE_mark">InvoiceLine</span> FQSaveToCache 1 &lt;&lt;&lt; Invoice 1 line 1<br /> <span id="bb3d1cf6-2146-4359-86be-eaef276a9ba3" class="GINGER_SOFTWARE_mark">insert</span> <span id="cdcadd4c-66a1-4c84-af37-bbfb44a48cac" class="GINGER_SOFTWARE_mark">InvoiceLine</span> FQSaveToCache 1 &lt;&lt;&lt; Invoice 1 line 2<br /> <span id="9e1be0c7-d82e-4dc2-9aed-779f3e2632a4" class="GINGER_SOFTWARE_mark">insert</span>&nbsp;Invoice &lt;&lt;&lt; header sets FQSaveToCache 0</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Invoice 1 gets written to QuickBooks</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span id="0636cfd0-5727-4e41-b66a-d934f7c10378" class="GINGER_SOFTWARE_mark">insert</span> <span id="7db8b876-a467-4fcf-a97c-d3debf76be78" class="GINGER_SOFTWARE_mark">InvoiceLine</span> FQSaveToCache 1 &lt;&lt;&lt; Invoice 2 line 1<br /> <span id="549742eb-055a-40f0-8558-a1c924ece134" class="GINGER_SOFTWARE_mark">insert</span> <span id="8d55d769-5f12-428a-9101-d873f0bf3477" class="GINGER_SOFTWARE_mark">InvoiceLine</span> FQSaveToCache 1 &lt;&lt;&lt; Invoice 2 line 2<br /> <span id="a2b09224-323c-4d5b-8b8f-4f79aaed4c21" class="GINGER_SOFTWARE_mark">insert</span>&nbsp;Invoice &lt;&lt;&lt; header sets FQSaveToCache 0</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Invoice2 gets written to QuickBooks</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">See: <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2594" target="_blank">Using ClassRefListID when inserting invoice lines</a> for a better example and how to add a line to an existing invoice.</span></p>
<p><span style="color: #990000;"><strong><span style="font-family: Arial, Helvetica, sans-serif;">Additional Notes</span></strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; You can create any invoices you wish with a range of invoice lines using a sequence of SQL statements. You don't need to use the Invoice header, and you can do your inserts just by using the InvoiceLine table like this:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span id="6e0f0e2d-8be1-48a7-a4af-92a59ca6deaf" class="GINGER_SOFTWARE_mark">insert</span> I<span id="0883c265-d93b-4bb3-8220-e814b0b5612c" class="GINGER_SOFTWARE_mark">nvoiceLine</span> FQSaveToCache 1&lt;&lt;&lt; Invoice 1 line 1<br /> <span id="6fead510-648e-4915-93c0-29cd85e19844" class="GINGER_SOFTWARE_mark">insert</span> I<span id="0883c265-d93b-4bb3-8220-e814b0b5612c" class="GINGER_SOFTWARE_mark">nvoiceLine</span>&nbsp;FQSaveToCache0 &lt;&lt;&lt; Invoice 1 line 2</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Invoice 1 gets written to QuickBooks</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span id="d59044f7-ac26-40ac-8460-3ee3acd08f6b" class="GINGER_SOFTWARE_mark">insert</span> I<span id="0883c265-d93b-4bb3-8220-e814b0b5612c" class="GINGER_SOFTWARE_mark">nvoiceLine</span>&nbsp;FQSaveToCache 1 &lt;&lt;&lt; Invoice 2 line 1<br /> <span id="a4905a9e-e622-4c76-b105-9e9c677c1ea8" class="GINGER_SOFTWARE_mark">insert</span> I<span id="0883c265-d93b-4bb3-8220-e814b0b5612c" class="GINGER_SOFTWARE_mark">nvoiceLine</span>&nbsp;FQSaveToCache 1 &lt;&lt;&lt; Invoice 2 line 2<br /> <span id="5cde6595-036e-4f05-9e93-66886b73fbad" class="GINGER_SOFTWARE_mark">insert</span> I<span id="0883c265-d93b-4bb3-8220-e814b0b5612c" class="GINGER_SOFTWARE_mark">nvoiceLine</span>&nbsp;FQSaveToCache 1 &lt;&lt;&lt; Invoice 2 line 3<br /> <span id="24bf8ee9-235e-485e-a400-55de1105df25" class="GINGER_SOFTWARE_mark">insert</span> I<span id="0883c265-d93b-4bb3-8220-e814b0b5612c" class="GINGER_SOFTWARE_mark">nvoiceLine</span>&nbsp;FQSaveToCache0 &lt;&lt;&lt; Invoice 2 line 4</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Invoice2 gets written to QuickBooks</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span id="307f9c31-016b-43af-928e-28dc519ab8c0" class="GINGER_SOFTWARE_mark">instead</span></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Keywords:&nbsp;Using ClassRefListID when inserting invoice lines</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] How to query Invoice lines where TxnDate=Yesterday using CURDATE]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/640]]></link>
<guid isPermaLink="false"><![CDATA[4ffce04d92a4d6cb21c1494cdfcd6dc1]]></guid>
<pubDate><![CDATA[Thu, 12 Mar 2009 17:21:52 +0000]]></pubDate>
<dc:creator><![CDATA[brad waddell]]></dc:creator>
<description><![CDATA[Troubleshooting: How to query Invoice lines where TxnDate=Yesterday using CURDATE
Problem Description 1 
&nbsp;&nbsp;&nbsp;&nbsp; I am using Excel to pull info from the InvoiceLine QB table. This triggers the 'Microsoft Query' program, which looks&nbsp;li...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting: How to query Invoice lines where TxnDate=Yesterday using CURDATE</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 am using Excel to pull info from the InvoiceLine QB table. This triggers the 'Microsoft Query' program, which looks&nbsp;like an access design grid.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; I am trying to understand how to limit the TxnDate from the InvoiceLine table to yesterday.&nbsp;</span><span style="font-family: Arial, Helvetica, sans-serif;">I tried the following in the SQL dialog box, and it does not work, it says "Expected lexical element not found:]"</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">SELECT InvoiceLine.TxnDate, InvoiceLine.InvoiceLineItemRefListID, InvoiceLine.InvoiceLineItemRefFullName, InvoiceLine.InvoiceLineQuantity<br />FROM InvoiceLine InvoiceLine<br />WHERE (InvoiceLine.TxnDate<span style="color: #ff0000;">&gt;{CURDATE()-1})<br /> </span>ORDER BY InvoiceLine.InvoiceLineItemRefListID</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; Can someone show me the proper way to use this function, or alternatively how to limit the query always to yesterday without explicitly going in and typing the date every day?</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;">Try:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">SELECT InvoiceLine.TxnDate, InvoiceLine.InvoiceLineItemRefListID, <br />InvoiceLine.InvoiceLineItemRefFullName, InvoiceLine.InvoiceLineQuantity, <br />{fn CURDATE()} as Today, ({fn CURDATE()}-1) as Yesterday<br />FROM InvoiceLine InvoiceLine <br />WHERE (InvoiceLine.TxnDate &gt; {fn CURDATE()}-1) and InvoiceLineItemRefListID is not null<br />ORDER BY InvoiceLine.InvoiceLineItemRefListID</span></p>
<p align="center"><span style="font-family: Arial, Helvetica, sans-serif;"><img src="https://support.flexquarters.com/esupport/newimages/640/Q1.png" alt="" /></span></p>
<p><strong><br /> <strong>Note:</strong>&nbsp;</strong>&nbsp;<a href="https://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2981" target="_blank">QODBC Support Wizard</a> is used to test QODBC SQL queries only and is not a development tool.</p>
<h3>&nbsp;</h3>
<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; I tried the below (typed it first, then pasted it instead), but I am coming up with the headers but no data. I verified that I had a transaction yesterday by creating a separate nonfiltered query.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> &nbsp;&nbsp;&nbsp;&nbsp; Also, recall I am using the "Microsoft Query" program that pops up when I invoke Data -&gt; Import External Data -&gt; New Database Query from within Microsoft Excel. the Microsoft query program shouldn't care, should it? Or does it need something installed that I am missing?</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><strong>Note</strong>: Besides, the QODBC Support Wizard form you posted is showing TxnDate that is not yesterday; it is showing everything. Not sure what that means either.</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;">&nbsp;&nbsp;&nbsp;&nbsp; For yesterday's invoices only, I would use TxnDate <span style="color: #ff0000;">equals</span>, and not TxnDate greater than yesterday:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">SELECT InvoiceLine.TxnDate, InvoiceLine.InvoiceLineItemRefListID, <br />InvoiceLine.InvoiceLineItemRefFullName, InvoiceLine.InvoiceLineQuantity, <br />{fn CURDATE()} as Today, ({fn CURDATE()}-1) as Yesterday<br />FROM InvoiceLine InvoiceLine <br />WHERE (InvoiceLine.TxnDate<span style="color: #ff0000;"> =</span> {fn CURDATE()}-1) and InvoiceLineItemRefListID is not null<br />ORDER BY InvoiceLine.InvoiceLineItemRefListID</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;&nbsp;&nbsp; As far as the Microsoft Query is concerned, use:</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">SELECT InvoiceLine.TxnDate, InvoiceLine.InvoiceLineItemRefListID, InvoiceLine.InvoiceLineItemRefFullName, InvoiceLine.InvoiceLineQuantity<br />FROM InvoiceLine InvoiceLine<br />WHERE (InvoiceLine.TxnDate<span style="color: #ff0000;">&gt;{CURDATE()}-1)<br /> </span>ORDER BY InvoiceLine.InvoiceLineItemRefListID</span></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description 3 </span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> &nbsp;&nbsp;&nbsp;&nbsp; I have been saving each of the queries I have created to a different filename, but I think this creates multiple applications permissions entries in QuickBooks. They are difficult to discern because all it tells me is 'FLEXquarters QODBC' (there are 5 of these in there now). Should I be doing it this way? Or should I save all my queries (all used by this specific front-end Excel app) under one file name?</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions 3</span></h3>
<p>&nbsp;&nbsp;&nbsp;&nbsp; The multiple 'FLEXquarters QODBC' connections shown in Integrated Application are for each type of application you have used. It's normal to have three or more listed, like one for QODBC itself, MS Excel, MS Query, etc.</p>
<p>&nbsp;&nbsp; <span style="font-family: Arial, Helvetica, sans-serif;">Saved queries have nothing to do with connections. Any number of queries can use a connection. For more on using Excel, see: <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/374">How to Use Prompted Date Ranges in MS Excel</a></span></p>]]></content:encoded>
</item>
</channel>
</rss>