W
will eichert
I'm emailing a report via email using DoCmd.SendObject in Access 2003.
It works fine, but I wanted to run some code in an event before the
report is sent. Seems simple enough. For some reason, the events (I've
tried the Open, Activate, even Error) don't seem to happen when the
report is invoked by SendObject. If I just open the report manually, I
get both the Open and the Activate event.
I've searched the archives, but can't find any info on this. Is there
something special I have to do to enable these events? Is this a bug
in Access 2003?
Here's my SendObject command:
DoCmd.SendObject acSendReport, myReport, acFormatRTF,
"myemail@mydomain", , , "email subject", "email body text", false
Thanks for any help,
Will Eichert
It works fine, but I wanted to run some code in an event before the
report is sent. Seems simple enough. For some reason, the events (I've
tried the Open, Activate, even Error) don't seem to happen when the
report is invoked by SendObject. If I just open the report manually, I
get both the Open and the Activate event.
I've searched the archives, but can't find any info on this. Is there
something special I have to do to enable these events? Is this a bug
in Access 2003?
Here's my SendObject command:
DoCmd.SendObject acSendReport, myReport, acFormatRTF,
"myemail@mydomain", , , "email subject", "email body text", false
Thanks for any help,
Will Eichert