perhaps make a small example app with your code, to show where you are calling it from etc.
Also, since you are loading the record, I presume your form is in "Change" mode, not "Insert" mode?
Incidentally I _suspect_ that given the new Partial Save functionality, and given that you can turn on validation at the tab level, this could likely be reduced, and even made to work with Insert's. Make an example and I'll play with it and see.
Cheers
Bruce