Message Invalid statement. Description An invalid statement was encountered. The most common cause of this error is when a declaration appears after the first statement in a compound statement. User Action Correct the program syntax.