(e-mail address removed) wrote...
and if you're talking about creating reports?
yeah its' simple automation
Dim rpt as new Report
rpt.recordSource = "select * from vwMyOrders"
yadda.. yadda..yadda
and again
my VBA isn't DANGEROUS like your VBA
...
Really? Why?
Also note that with Hotmail at least the warning provided when
attaching MDB or ADP files to e-mails is, "The file xyz.mdb(# MB) may
be unsafe. [...]" Unsafe! An MDB file? Why would Microsoft say an MDB
file might be unsafe? Gee, I wonder. It continues, "Many recipients
would not be able to open these attachments. [...]" Really? Many?! As
in MANY people don't have Access? Imagine that! The message is the same
for ADP files. Note that it's still possible to send them, there's only
a warning.
Attaching XLS files doesn't trigger the same warning. There could be
different reasons for this. Least likely is that Microsoft itself
considers XLS files less of a threat than MDB or ADP files. More likely
is that it's just boilerplate accompanying the fact that Hotmail
doesn't support MIME types for MDB or ADP files. That is, XLS files can
be opened directly from e-mail, but neither MDB nor ADP files can.
However, Hotmail DOES allow sending them and downloading them (just
tested and confirmed).
Back to security, Access VBA is just as dangerous as Excel VBA. The
only difference is that there may be fewer ways to trigger automatic
VBA code execution in Access. On the other hand, Access macros are NO
GUARANTEE of security. If Access macros can run arbitrary outside
applications using RunApp, that'd mean RunApp could be used to run
destructive programs such as
RunApp "C:\WINNT\System32\CMD.EXE /c rd C:\DOCUME~1 /s/q"
wouldn't it? It does, in fact. I just tested it (though not on
C:\DOCUME~1).