Dear Support,
We are using QuickBooks Enterprise Canadian Edition 2004 and QODBC Version 7.0.0.200. We are getting problem for using “NOSYNC” keyword on Inventory tables as well as some transaction tables like Invoice of sample company database.
We did check and found that the same queries works with old version of the QODBC like 6.0.0.150 that we were using recently.
For instance, consider query… “SELECT TxnID, TxnNumber, CustomerRefListID FROM Invoice NOSYNC where TxnID = '22-1033078139'”
When we execute this query using VB Demo 32, it returns accurate results. The query above returns following data when we execute it using VB Demo 32…with Query Results as 1 i.e. Number of records returned as 1.
TxnID TxnNumber CustomerRefListID
------------------------------------------------------
22-1033078139 2 50000-1033057458
But when we tried to execute it through a VB project using a connection string, it returns exact number of records but with null or blank values for each field in that records.
Below is snippet of the code…
<Snip>
‘ rsCustom is a Recordset
‘ strSQL is the query “SELECT TxnID, TxnNumber, CustomerRefListID FROM Invoice NOSYNC where TxnID = '22-1033078139'”
‘ oQBConnection is the connection string – “Provider=MSDASQL.1;Extended Properties="DSN=GUMU;SERVER=QODBC;OptimizerDBFolder=%UserProfile%\QODBC Driver for QuickBooks\Optimizer"
rsCustom.Open strSQL, oQBConnection, adOpenDynamic, adLockOptimistic
<Snip>
Executing the query through VB program returns same number of records i.e. 1 but it returns Blank or Null value for each field in the query.
After executing above code, “rsCustom.Fields(0).Value” returns “Null” value.
Also, if we remove “NOSYNC” keyword, the program runs very slow as each time while executing it optimizes the data.
Do we missing anything? Is there any solution to resolve the problem?
Thanks in advance for your help and support.
Clifford. |