I have tried your code and it works, however it brings up the function Invest twice, as if it repeats itself.
This is what I am doing. I have a Investigation form that upon a new investigation, three functions are called in the docReady. One asks for thier employee number, another asks them for the dept #, and finaly they are asked for their Name. I wanted to make the form available once all the data was saved, and didn't want the user to have to fill in the required data again. (I am still new at this). The three functions just ask for information and then it is passed to the appropriate textField, however if the information is missing or left out the funcation asks for it again.
Thanks for the help.