Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
CASE Statement
In the past we have used the CASE statement for an excel VB Query using a third party ODBC link.
Using the new ODBC driver we are unable to use the CASE statement.
This is the query that I am trying to change but am having no luck.
Any help would be greatly appreciated.
" SELECT TRANSACTIONS_1.TRANSACTION_TYPE AS Transaction_Type, TRANSACTIONS_1.TRANDATE AS Transaction_Date, TRANSACTIONS_1.TRANID AS Transaction_No, ENTITY_1.FULL_NAME AS Supplier, TRANSACTION_LINES_1.MEMO AS Memo, NULL AS Billed, CASE WHEN TRANSACTIONS_1.TRANSACTION_TYPE = 'Bill Credit' THEN TRANSACTION_LINES_1.AMOUNT ELSE -TRANSACTION_LINES_1.AMOUNT END AS Paid, TRANSACTIONS_1.TRANDATE AS Date_Paid, ENTITY_1.EMAIL, ENTITY_1.ADDRESS_ONE, ENTITY_1.ADDRESS_TWO, ENTITY_1.CITY, ENTITY_1.STATE, ENTITY_1.ZIPCODE AS Postcode, ENTITY_1.EFT as EFT " _