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 : Retrieve recently modified invoicesSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Sample Scripts Forum

 New Topic 
 
 Post Reply 
[1]  
 Retrieve recently modified invoices 
 Author   Message 
  Sergey 
  
 Group: Members 
 Posts: 1 
 Joined: 2007-01-05 
 Profile
 Posted : 2007-01-05 02:56:11

I want to retrieve only recently created/modified invoices, saying, modified during the last 60 minutes. But field TimeModified seems to contain no time, date only, so my select through qbodbc driver retrieves all invoices modified within the specified day. Is there a way to filter only invoices modified within the last 60 minutes?

Thanks in advance,

Sergey  

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-01-05 10:14:11

SELECT SalesOrderLine.TxnID, SalesOrderLine.CustomerRefFullName, SalesOrderLine.TxnDate, SalesOrderLine.RefNumber, SalesOrderLine.PONumber, SalesOrderLine.DueDate, SalesOrderLine.ShipDate, SalesOrderLine.ShipMethodRefFullName, SalesOrderLine.SalesOrderLineItemRefFullName, SalesOrderLine.SalesOrderLineQuantity, SalesOrderLine.SalesOrderLineRate, SalesOrderLine.SalesOrderLineAmount FROM SalesOrderLine where TimeModified > {fn TIMESTAMPADD(SQL_TSI_MINUTE, -60, {fn NOW()})}

will automatically retreive only the records in the SalesOrderLine table that have been changed in the last 60 minutes. You can use where TimeModified > {fn TIMESTAMPADD(SQL_TSI_MINUTE, -60, {fn NOW()})} with the InvoiceLine table also.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to