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 : CASE n WHEN Statements not supported?Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Support Forum

 New Topic 
 
 Post Reply 
[1]  
 CASE n WHEN Statements not supported? 
 Author   Message 
  Giber 
  
 Group: Members 
 Posts: 2 
 Joined: 2006-04-26 
 Profile
 Posted : 2006-04-26 08:39:08

Im using VBA with Excel to retrieve data using the QODBC.

I want to put this SQL Query

SELECT SUM(TOTAL) AS Import

FROM

(SELECT CASE WHEN(PurchaseOrder.VendorRefFullName = 'Bob') THEN PurchaseOrder.Amount * 10.8 ELSE PurchaseOrder.Amount END AS TOTAL

FROM PurchaseOrder

WHERE (PurchaseOrder.TxnDate >= {d '2006-04-17'}) AND (PurchaseOrder.TxnDate <= {d '2006-04-23'})) Provider

How does the CASE Statement works in QODBC?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-04-26 10:15:03

The use of

CASE sql_expression
     WHEN sql_expression_value THEN return_value
     ELSE return_value

or

CASE 
     WHEN sql_Boolean_expression THEN return_value
     ELSE return_value

is currently not supported by QODBC.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to