Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

'Exit While' can only appear inside a 'While' statement

An Exit While statement occurs outside a While block. Exit While is valid only between a While statement and a corresponding End While statement.

Error ID: BC30097

To correct this error

  1. Make sure a valid While statement precedes the Exit While and a valid End While statement appears after it.

  2. Verify that other control structures within the While block are correctly terminated.

Community Additions

© 2015 Microsoft