Search the web
Sign In
New User? Sign Up
qodbc · QODBC ODBC Driver for QuickBooks
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Date Format in Where Statement of Pass Thru Query   Message List  
Reply | Forward Message #1331 of 1354 |
RE: [qodbc] Date Format in Where Statement of Pass Thru Query

Dates have a specific format requirement for being passed within the
WHERE clause:
{d'YYY-MM-DD'}

So, you need to format your fiel as appropriate so that it can be passed
in that fashion. It's a royal pain, but if you want to use dates in
your queries, you have to go through this process.

________________________________

From: qodbc@yahoogroups.com [mailto:qodbc@yahoogroups.com] On Behalf Of
sheaschultze
Sent: Monday, September 03, 2007 8:06 AM
To: qodbc@yahoogroups.com
Subject: [qodbc] Date Format in Where Statement of Pass Thru Query



Hi. I have the latest versions of the driver and QuickBooks
Enterprise 7. I use Access 2003. Pass Thru queries work just great
until I try to restrict by date.

This works perfect:
SELECT *
FROM InvoiceLine UNOPTIMIZED
WHERE ClassRefFullName = "001-Gfeller"

This fails:
SELECT *
FROM InvoiceLine UNOPTIMIZED
WHERE TxnDate = ????!!!!????

I've tried different bracketing:
(), {}, [], " ", ' ', ##
I've tried different date formats:
YYYY-MM-DD, YYYY-DD-MM, YYYYMMDD, MM/DD/YY, MM/DD/YYYY, etc.

Got a variety of different error messages like Unexpected Literal,
or etc.

Any suggestions?







Mon Sep 17, 2007 1:46 pm

ddprlewis
Online Now Online Now
Send Email Send Email

Forward
Message #1331 of 1354 |
Expand Messages Author Sort by Date

Hi. I have the latest versions of the driver and QuickBooks Enterprise 7. I use Access 2003. Pass Thru queries work just great until I try to restrict by...
sheaschultze
Offline Send Email
Sep 15, 2007
6:07 pm

Dates have a specific format requirement for being passed within the WHERE clause: {d'YYY-MM-DD'} So, you need to format your fiel as appropriate so that it...
Rod Lewis
ddprlewis
Online Now Send Email
Sep 17, 2007
1:47 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help