Defining Constants

  • Thread starter Thread starter Bakr Z via AccessMonster.com
  • Start date Start date
B

Bakr Z via AccessMonster.com

Hi to all...
I have used ShellExecute API in my program to open autocad files related to a
displayed number in a text field from the database(the program includes
macros and uses forms and reports)...
and I am facing some problem with where to define the constants...

***App Window Constants***
Public Const WIN_NORMAL = 1 'Open Normal
Public Const WIN_MAX = 3 'Open Maximized
Public Const WIN_MIN = 2 'Open Minimized

I've tried to declre them in the declarations Area but it show me an error...
where should I declare the constants variables???

Warm Regards to all of you...
 
Public constants must be declared in a standard module. Only private
constants can be declared in a class module (which includes form and report
modules). If that's the problem, you can either move the code to a standard
module, or if it is only used by one form leave it in the form module and
change the declarations from Public to Private.
 
Back
Top