Versioning InfoPath Forms
Almost everyone working with InfoPath forms knows that each time they publish a form, it creates a timestamp and a version number for the template. In InfoPath, go to Form Options and you’ll see this dialog:
Well, if you need to keep track of the version number for your form, you can make it easy on yourself and others by adding a small field at the bottom of your form. Then in the default value of this field, insert the formula
substring-before(substring-after(processing-instruction()[local-name(.) = "mso-infoPathSolution"], 'solutionVersion="'), '"')
Here is a simple screenshot that shows the control
And here is what it renders like (screen clipped a lot):
I hope this helps you keep track of InfoPath forms version numbers. I know it will me.