1) Conditional Compilation constants defined in the IDE
as "Conditional Compilation Arguments", are not visible
when you make an MDE.
I do not understand this comment. By definition, the process of
creating an MDE will strip out the conditional code, since all
canonical code is stripped out, and only the compiled code remains.
Thus, you wouldn't want to create an MDE from a codebase with
conditional compilation that applies to compatible versions of
Access. In other words, if you have A2K-specific code and
A2K2/K3-specific code, you can't creat a single MDB to run on A2K,
A2K2 and A2K3. You'd need an A2K MDE and an A2K2/K3 MDE, since only
then would you get the compilation that was appropriate to the
target Access version.
2) Access 2000 (and I assume +) actually attempt to compile
all of your code anyway, before ignoring the conditional code.
So you can't actually use it to comment out large blocks of
code or code specific to A97: compilation fails on any invalid
code regardless of "conditional compilation".
Really? I can't find it right off the bat, but I'm pretty sure I had
some conditional compilation in some code that is running in both
A2K and A97. But wait -- isn't conditional compilation a feature
introduced *after* A97?
I think I should stop asking questions about something I don't use
and have no intention of using!