I know that for MS Access, Case statements won't work. Does anyone know if they work when using an Excel file as the data source?
Or maybe it's just my formatting is wrong. I've attached a sample of the data file, and the code I'm using is below:
Basically, if the Author field indicates me, then I know I commented. Otherwise, I know I need to comment.![]()
SELECT `Sheet1$`.Author, CASE WHEN `Sheet1$`.Author='me' THEN 'OK' ELSE 'nope' END FROM `sample.xls`.`Sheet1$` `Sheet1$`
Bookmarks