Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Missing recordsSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v6 Forum

 New Topic 
 
 Post Reply 
[1]  
 Missing records 
 Author   Message 
  Giber 
  
 Group: Members 
 Posts: 2 
 Joined: 2006-04-26 
 Profile
 Posted : 2006-05-06 08:23:10

I have QODBC version v6.00.00.155 and QB05 PRO

I want to retrive the data from PurchaseOrder from 2006-01-01 to 2006-05-04

I have this query in VBA

        .CommandText = "SELECT TxnDate, VendorRefFullName, TotalAmount " _
            + "FROM PurchaseOrder " _
            + "WHERE TxnDate >= {d '2006-01-01'} AND TxnDate <= {d '2006-05-04'}"

The results come out incomplete, there are missing records.

If I put the unoptimized:

   .CommandText = "SELECT TxnDate, VendorRefFullName, TotalAmount " _
            + "FROM PurchaseOrder " _
            + "UNOPTIMIZED WHERE TxnDate = {d '2006-01-01'} AND TxnDate {d '2006-05-04'}"

I get this error: numer 1004, Application-Defined or Object-Definied Error

I have also use the sp_optimizefullsync PurchaseOrder and then run the query in VBDemo 32 an Im still missing some records :(

What could it be wrong?

 

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-05-06 17:58:21

Your second query wil never work as shown, try:

CommandText = "SELECT TxnDate, VendorRefFullName, TotalAmount " _
            + "FROM PurchaseOrder unoptimized " _
            + "WHERE TxnDate >= {d '2006-01-01'}"

or try using this statement in VB Demo:

SELECT TxnDate, VendorRefFullName, TotalAmount
FROM PurchaseOrder UNOPTIMIZED
WHERE TxnDate >= {d '2006-01-01'}

 

 

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to