Alright,
First :
on the left side of the line you have entered there is show : initialize*
this is the initialize event, so once the form is initialized, the code is executed, make sure you put the code in the right event (exit event)
Second:
You try to access SubmittoGenlMgrButton, but is it in the same subform of the object's event?
Ensure to use the right reference_syntax to access the submit button
If you are not sure what is the reference_syntax, you can generate it automatically by doing the following :
1. Make sure your Text_Cursor is in the code
2. Hold down Ctrl and click on the submit button
It will create the reference_syntax in the code to be able to access the button
If you want to know how to create the reference_syntax, you can use the Hierarchy Palette to help yourself know what nodes needs to be accessed before accessing the object wanted.
Hope this will help