The first part of a SELECT CASE statement is missing or misspelled. Also check other structures within the SELECT...END SELECT structure and verify that they are correctly matched. For example, an IF block without a matching END IF inside the SELECT...END SELECT structure generates this error.