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 : SQL Query Date RangesSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 SQL Query Date Ranges 
 Author   Message 
  cascadtx 
  
 Group: Members 
 Posts: 1 
 Joined: 2008-06-12 
 Profile
 Posted : 2008-06-12 13:52:23

I'm able to connect to Quickbooks Enterprise using MS ADO and QBODBC pretty much the same way as I would connect to an Access database.  That part is GREAT, however, I can't for the life of me seem to figure out how to build a SQL query that will return records in a certain date range.  I searched in this forum and found some samples, but I still can't seem to get them to work - a couple of these appear below.  The really odd thing is that most of these SQL statement forms work fine against an Access database.  What gives?

  strCmd = "SELECT Sales.ShipDate FROM Sales" & _
             " WHERE Sales.ShipDate >=#1/1/2008#" & _
               " And Sales.ShipDate <=#1/31/2008#"

  strCmd = "SELECT Sales.ShipDate FROM Sales" & _
             " WHERE Sales.ShipDate >={d '2008-01-01}" & _
               " And Sales.ShipDate <={d '2008-01-31}"

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-06-12 15:34:57
See: How are dates formatted in SQL queries when using the QuickBooks generated time stamps?  

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to