473,387 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Auto email a report

I have a form that contains a button which runs a report based on a
query. The code as far as I can tell is as follows:
*
Private Sub Email_Headend_Fiber_Click()
On Error GoTo Err_Email_Headend_Fiber_Click

Dim stDocName As String

stDocName = "New_Node_Notification_Report"
DoCmd.SendObject acReport, stDocName

Exit_Email_Headend_Fiber_Click:
Exit Sub

Err_Email_Headend_Fiber_Click:
MsgBox Err.Description
Resume Exit_Email_Headend_Fiber_Click

End Sub
*
Since I am emailing the same two people this information all the time,
I would like to have the report exported in excel (I now get a dialog
box that comes up where I have to choose from excel, snapshot, html,
etc.), auto addressed to the 2 parties and automatically sent out. Can
anyone explain how to do this? (what code to enter and where in the
commands above)

Thanks
Nov 12 '05 #1
1 1784
Look up the help for your DoCmd.SendObject acReport, stDocName command.
There are more options. You just need to define the remaining options then
you are good to go.

--
Dean Covey
www.coveyaccounting.com

MS-Office Certified:
http://www.microsoft.com/learning/mc...st/default.asp

"Gary" <ga**********@adelphia.com> wrote in message
news:8c**************************@posting.google.c om...
I have a form that contains a button which runs a report based on a
query. The code as far as I can tell is as follows:
*
Private Sub Email_Headend_Fiber_Click()
On Error GoTo Err_Email_Headend_Fiber_Click

Dim stDocName As String

stDocName = "New_Node_Notification_Report"
DoCmd.SendObject acReport, stDocName

Exit_Email_Headend_Fiber_Click:
Exit Sub

Err_Email_Headend_Fiber_Click:
MsgBox Err.Description
Resume Exit_Email_Headend_Fiber_Click

End Sub
*
Since I am emailing the same two people this information all the time,
I would like to have the report exported in excel (I now get a dialog
box that comes up where I have to choose from excel, snapshot, html,
etc.), auto addressed to the 2 parties and automatically sent out. Can
anyone explain how to do this? (what code to enter and where in the
commands above)

Thanks

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Nothing | last post by:
I have a report based on a query that is based agaisnt two tables. The report pulls information for 1 customer. The tables may hold multipul customers. I want to email just the ONE report. All...
1
by: Gary | last post by:
I have a form that contains a button which runs a report based on a query. The code as far as I can tell is as follows: * Private Sub Email_Headend_Fiber_Click() On Error GoTo...
2
by: Tee GEE | last post by:
Apparently Micrsoft didn't include this feature in Access 2003! I would like to send a report that is all text. Access only gives the option to send it as an attachment. I would like the report...
46
by: pixie | last post by:
Hi. I have an Access DB that is for contracts. I have used the code found on Tony's site for emailing a report per person containing only their information using GroupWise. It works great but I...
10
by: Des | last post by:
I was wondering if anyone could help me out with this. I use Access 2003 to generate certain files and then I convert them to pdf, I was wondering if anyone would know the code I could use where I...
1
by: jrshack | last post by:
I am needing a script that will send an auto-response email back to the email supplied in the registration html form. I have an html form mail that ask for information and an email address from the...
1
CougarMutt
by: CougarMutt | last post by:
Is this even possible? At 6am every morning to automatically run a report and email it using Groupwise? Chris
2
by: PerumalSamy | last post by:
HI I done a project in asp.net with VB coding and sql server 2005 as back end. Now i need to generate an auto email based on current date from one of the date field in my database table on...
1
by: PerumalSamy | last post by:
HI I done a project in asp.net with VB coding and sql server 2005 as back end. Now i need to generate an auto email everyday for current date based on the date field in my database table . ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.