global conditional compilation constants in Access 2002 
Author Message
 global conditional compilation constants in Access 2002

Is there any way to set global conditional compilation
constants in Access 2002?  They could be set in Access 97
using the Options | Advanced dialog, but the option
appears to be missing in Acc2002.  Nevertheless the Help
system refers to setting them in the user interface.  I
want to conditionally compile parts of the code depending
on whether I am compile with Acc97 or 2002, and don't
want to have to define a #Const in every module affected.


Wed, 08 Jun 2005 01:18:54 GMT  
 global conditional compilation constants in Access 2002
I don't know about Access 2002, but in Access 2000, you can set these as
follows:

1.  From the database window, choose Tools, Macro, Visual Basic Editor.

2.  In the Microsoft Visual Basic window that appears, choose Tools, <name
of your database> Properties.

You can set the conditional compilation arguments on the General tab of the
Project Properties dialog that appears.


Quote:
> Is there any way to set global conditional compilation
> constants in Access 2002?  They could be set in Access 97
> using the Options | Advanced dialog, but the option
> appears to be missing in Acc2002.  Nevertheless the Help
> system refers to setting them in the user interface.  I
> want to conditionally compile parts of the code depending
> on whether I am compile with Acc97 or 2002, and don't
> want to have to define a #Const in every module affected.



Wed, 08 Jun 2005 02:03:57 GMT  
 global conditional compilation constants in Access 2002
Found it! Thanks.

Quote:
>-----Original Message-----
>I don't know about Access 2002, but in Access 2000, you
can set these as
>follows:

>1.  From the database window, choose Tools, Macro,

Visual Basic Editor.
Quote:

>2.  In the Microsoft Visual Basic window that appears,
choose Tools, <name
>of your database> Properties.

>You can set the conditional compilation arguments on the
General tab of the
>Project Properties dialog that appears.



>> Is there any way to set global conditional compilation
>> constants in Access 2002?  They could be set in Access
97
>> using the Options | Advanced dialog, but the option
>> appears to be missing in Acc2002.  Nevertheless the
Help
>> system refers to setting them in the user interface.  I
>> want to conditionally compile parts of the code
depending
>> on whether I am compile with Acc97 or 2002, and don't
>> want to have to define a #Const in every module
affected.

>.



Wed, 08 Jun 2005 02:24:37 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Conditional compilation using global constants

2. conditional compilation constants

3. can you change conditional compilation constants in c0de?

4. public conditional compilation constant

5. Access 97: MDE ignores Conditional Compilation Arguments

6. Word 200 and Word 2002: VBA6 compiler constant does not do the job

7. Conditional Compilation

8. Conditional Compilation Arguments and MDE

9. Dynamic Conditional Compilation Question

10. Conditional Compilation Help

11. Conditional compilation to run Word2000 and 97 code under Word97

12. Conditional JIT compilation?

 

 
Powered by phpBB® Forum Software