Global definition invalid inside form module
You can't have a Type ... End Type block, Global statement, or Global Const statement in a form module. Data in a form module cannot be referenced by other modules. Move data that must be global to a non-forms module.