And is the code compiled into a form of executable file or
is it compiled over and over again at runtime?
No, it is not compiled...but if you have a mdb, then often code or certain
things can cause it to be un-compiled..and that can really slow things down.
However, as a normal operation, the code after compiled does stay in that
state.
And, to further this, VBA actually gets compiled down to p-code, and not
native Intel assembler code like c++, or even VB6.
However, for reading data from JET, or sql server, there is generally
little, or no difference in performance if you use c++, VB6, or ms-access.
Ms-access VBA can easily execute 30 to 100 million instructions per second
on a average computer. This just means that Processing on a average computer
to day is not the problem..and increasing processing with do very little to
help ms-access performance. The real issue, or enemy to day in terms of
performance is not processing..but bandwidth..and how fast the data can be
feed to your application (it spends most of its time waiting).
So, processing power is generally a non issue with ms-access on late model
PC.