Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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 " _