I have a form that auto numbers a field. The way it is setup is when I hit the submit button the form does a query on the library for the highest number and sets the field with that number plus one. What is happening is that randomly I will get a NaN instead of a number. If I change it to a number the next 5 or 10 or 15 whatever will work and then I will get another NaN in this field. Does anyone have any idea why this might be happening randomly like this.