Another thing you can do is if you just want global variables, is to create a module and declare your variables public and then import the module into your form.
For Example
Public Module Module1
Public gstrCustCode as String
Public gstrCustName as String
...
and then...