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
|
|
SQL Query Date Ranges |
Author |
Message |
|
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}"
|
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2008-06-12 15:34:57 |
|
|
|
|