|
-
Mar 1st, 2006, 11:40 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Auto email from access
I need to write a macro within microsoft access which will run one of my predefined reports & then email it.
I have the report set up within access.
How can i write a macro to send the report and auto email.
I'm using access 2000 and i also can use access 2003.
thanks
-
Mar 1st, 2006, 11:52 AM
#2
Re: Auto email from access
Access VBA question moved to Office Development
-
Mar 1st, 2006, 11:52 AM
#3
Re: Auto email from access
docmd.SendObject acSendReport,"ReportName", acFormat....,To,CC,BCC,Subject, Message, etc....
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Mar 1st, 2006, 12:01 PM
#4
Thread Starter
Fanatic Member
Re: Auto email from access
Thanks Static - do i use public function first?
-
Mar 1st, 2006, 01:53 PM
#5
Frenzied Member
Re: Auto email from access
No, you'd put that in a sub, not a function, unless you maybe wanted to return a boolean value indicating success or failure, or in the click event of a button. Or, call the function from the click eventShouldn't be public unless called from more than one spot. The function could take ReportName, to, cc, subject, etc, as arguments to make it more generic.
You could do it in a macro, but I suggest avoiding macros like the plague.
Tengo mas preguntas que contestas
-
Mar 1st, 2006, 02:44 PM
#6
Re: Auto email from access
agreed.. NO MACROS unless u have to!! (or if u need a startup macro)
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|