Is there a #Include statement or Macrocompiler in Access?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Is there a possibility to #Include code text or declarations of specific
variables in Access. Most other langues that I know do support also a
macrocompiler, where coding can be included into a procedure and optionally
pass parameters that affect the compiler input.
 
#Include does not exist, however if you're wanting to reuse code between
*.mdb files including the same CONSTANTS, you'll want to investigate
using a *.mdb file as a library file. I've never done, but have read
that it is possible. If I recall correctly, all of the various wizards,
including the ZOOM box are done via library files.
 
Jos said:
Is there a possibility to #Include code text or declarations of specific
variables in Access. Most other langues that I know do support also a
macrocompiler, where coding can be included into a procedure and optionally
pass parameters that affect the compiler input.


No.

In addition to what others have said, the best you get in
VBA is the #Const And #If, #Else and #End If conditional
compilation statements. No #Include, no substitution, nor a
true macro capability.

There are also a bunch of methods on the module object for
code manipulation, but those are one time, design time
operations.
 
Back
Top