It's possible, but it's a probelmatic way of doing things. If you have multiple copies of the files on multiple computers, you're going to get different contracts with the same "contract number"... You're better off using a random number, or something else entirely.
The file is only running on one computer and is not shared. A random number could be used as long as it remains a unique number. As of now it's manually inputted was hoping to set it up so it automatically generates the next number in sequence.
To do that attach this code to your Reset button:
var f = this.getField("contract number");
if (f.value=="") f.value = "00001";
else f.value = util.printf("%05d", Number(f.value)+1);
f.defaultValue = f.value;
Thanks so much