Can I use a module to load registry settings and have them available at all times? I took a guess at this and did the following:

Dim Y As Variant


Y = GetSetting("Savetest", "Startup", "LastEntry", "0")

That's what's in my module right now. With the intent on using "y" in the forms in my program to do equations.

Obviously this guess was wrong 'cause I get the following error on load:

Compile error:
Invalid outside Procedure

and it highlights the "Savetest" part of my module code.

Is there a way to do this. I'd like to have the user set the "x" "y" "z" factors that can be used throughout the program without having to use getsetting procedures on all my forms.

Please Help!

Thanks in advance!!