Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
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 " _