That looks like a constant being declared, not a variable.
If declared in a procedure, regardless of where its scope is that procedure only. IIRC, you'd raise an error trying to make it public inside of a procedure.
If declared at the top of a form/report module its scope is to any procedure in that form/report only.
If declared Public at the top of a standard module its scope is project wide.
Without seeing your code project I don't know what else to suggest, except maybe to research scope of variables & constants