Scott,

the most common cause for the problem you have is a discrepancy in the amount of if's vs. endif's ...

just to be sure : count them

Or you may just post your code here ?

J.
_________________________