Invalid in Sub or Function
The statement cannot occur in a Sub or Function procedure. The statements Declare, Deftype, Global, Global Const, Option, and Type are not allowed in procedures.