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 : Join with Access table failsSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Join with Access table fails 
 Author   Message 
  Shawn 
  
 Group: Members 
 Posts: 4 
 Joined: 2008-07-16 
 Profile
 Posted : 2008-07-16 07:27:37

I am developing a QODBC app from within MSAccess 2003 using ADO.  I have the following query, which fails:

SELECT tblTmpEttc.TxnID as ChkId, DepositLine.TxnID as DepId, tblTmpEttc.Memo as ExpLineMemo, tblTmpEttc.TxnID, DepositLine.Memo as DepLineMemo FROM DepositLine JOIN tblTmpEttc ON ExpLineMemo = DepLineMemo

In this query, tblTmpEttc is a native Access table, and DepositLine is, of course, a Quickbooks table.  I have checked to ensure that the fields in my Access table match the Quickbooks table definition.  The error comes from QODBC, and it says "Unexpected extra token: JOIN".  As best I can tell, my query is correct SQL.  Does QODBC not support joining with native Access tables?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-07-16 08:45:09

Sorry when using SELECT statements with QODBC, JOINs are only mean't to be from one QODBC table to another QODBC table. QODBC doesn't know about your MS Access tables. May be MS Access sorts this out for you before it calls QODBC? Try:

SELECT tblTmpEttc.TxnID as ChkId, DepositLine.TxnID as DepId, tblTmpEttc.Memo as ExpLineMemo,
tblTmpEttc.TxnID, DepositLine.Memo as DepLineMemo FROM DepositLine
INNER JOIN tblTmpEttc ON tblTmpEttc.Memo = DepositLine.Memo

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to