Visual Basic is unable to analyze this statement. This error has the following causes and solutions:
Try breaking the statement into several smaller components or replace complex conditional clauses with a combination of logical operators and If...Then...Else statements.
Make function calls earlier and assign the results to specific variables; then use the variables in the statement that is causing the complexity error.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).