Ray:
I moved lines 37-40 to the top of the page as you suggested and now the error message is gone, but the Student ID field is accepting duplicate ID codes. I’ve entered an already-existing ID twice and DW took it both times.
Any suggestions?
Attached please find a copy of the page in question
Thank you for your attention