Examine the structure closer. The ENDIF's are not at the bottom of the section. Each one is associate with a particular IF. The indented structure is the key to readability of the NESTED IF statements.
_________________________
Home page: http://www.kixhelp.com/hb/