I'm trying to create an infopath form that publishes to a Sharepoint database. I'm using a custom submit buttom to assign a sequential form number when posting to database. The submit button uses a rule an a data connection to assign the form number as max(formnum) + 1. Where I'm having a...