D
David W. Fenton
Help me understand, David, why the VBA code _that is generated by
the wizards_ "can't be executed safely".
Because there's no way to mark wizard-generated code as a special
kind of code that can't have anything dangerous in it. Macros are
limited to a finite set of commands. VBA is not.
They haven't done away with VBA, they
have just done away with the Wizards generating it -- you can
create your own event procedures using VBA, but, if you are a
developer and going to extend an event procedure, you are going to
have to rewrite what they did with the *&$% macros.
But is there also not a very easy way to convert the macros to code?
I read something about that on one of the Access blogs (probably
Clint Covington's).
Do I think they have an agenda to eliminate VBA?
No, I don't think they do. At least, not until they can replace it
with a managed-code solution. Remember, a huge portion of Access
itself is written in *Access* and delivered as wizards. If VBA were
removed, then those wouldn't work.
Yes, indeed I do, unless
they have a groundswell of support from _enterprise customers_.
VSTO is already there to encourage Word and Excel developers to
move to the "wonderful world of DotNet." No amount of bitchin'
from "the great Access unwashed" is likely to have any effect.
Does VSTO allow you to write managed code for use in Word and Excel?
If not, then I don't understand how it's a replacement for VBA in
Word and Excel.
Frankly, I've been a developer since before Bill Gates was in
Junior High School, when he was borrowing time on somebody's
minicomputer to learn programming, and much before he founded
Microsoft. For me, it's a little late to have an interest in
switching to "user software support" -- that's for the interns
that the company hires from local colleges to support technical
education and scope out promising young new hires.
There will always have to be a scripting language in Access. The
question is: how full-featured will it be and will it still be able
to use API calls.