Send Preview by email (Excel Format)

  • Thread starter Thread starter Bob Vance
  • Start date Start date
B

Bob Vance

In Access 2002 I used to be able to send my report (Send To Mail Recipient
and Choose excel format) I have lost that now in Access 2007 is there
another way I can send it via this format!
 
Not as an Excel format. You can output the underlying query to Excel, or
print the report to a PDF.
 
Thanks Arvin, Thought I was going mad as I used to be able to email in excel
format!
This is my Report code is it possible to put another control on my form to
send it to Excel format?

Private Sub Report_Open(Cancel As Integer)
Dim strSQL As String

Select Case Me.OpenArgs

Case "MonthlyPaid"

Me.Caption = "Monthly Report"



If Form_frmBillStatement.fraSelectInvoice.value = 1 Then


strSQL = "Select * from qrysubMonthlyPaid ORDER BY
qrysubMonthlyPaid.InvoiceNo ASC"
ElseIf Form_frmBillStatement.fraSelectInvoice.value = 2 Then

strSQL = "Select * from qrysubMonthlyPaid where
qrysubMonthlyPaid.InvoiceNo<>0"
End If

tbDueOwnerName.Visible = False
tbDueAmount.Visible = False
tbPaymentMethod.Visible = False
tbAmountPaid.Visible = False
tbBillID.Visible = False
tbCreditType.Visible = False

tbDate.Left = 0
tbDate.ControlSource = "InvoiceDate"
tbInvoiceNo.ControlSource = "InvoiceNo"
tbOwnerName.ControlSource = "OwnerName"
tbHorseName.ControlSource = "HorseDetail"
tbAmount.ControlSource = "TotalAmountPaid"
tbSumOfAmount.Visible = False
tbSumOfAmount.ControlSource = "TotalAmountPaid"
lblTotal.Visible = True
tbTotal.Visible = True

Arvin Meyer said:
Not as an Excel format. You can output the underlying query to Excel, or
print the report to a PDF.
 
Microsoft no longer supports outputting reports to Excel. The other choice
you have is to create a report in Excel and output the query results of an
Access query to that report.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

Bob Vance said:
Thanks Arvin, Thought I was going mad as I used to be able to email in
excel format!
This is my Report code is it possible to put another control on my form to
send it to Excel format?

Private Sub Report_Open(Cancel As Integer)
Dim strSQL As String

Select Case Me.OpenArgs

Case "MonthlyPaid"

Me.Caption = "Monthly Report"



If Form_frmBillStatement.fraSelectInvoice.value = 1 Then


strSQL = "Select * from qrysubMonthlyPaid ORDER BY
qrysubMonthlyPaid.InvoiceNo ASC"
ElseIf Form_frmBillStatement.fraSelectInvoice.value = 2 Then

strSQL = "Select * from qrysubMonthlyPaid where
qrysubMonthlyPaid.InvoiceNo<>0"
End If

tbDueOwnerName.Visible = False
tbDueAmount.Visible = False
tbPaymentMethod.Visible = False
tbAmountPaid.Visible = False
tbBillID.Visible = False
tbCreditType.Visible = False

tbDate.Left = 0
tbDate.ControlSource = "InvoiceDate"
tbInvoiceNo.ControlSource = "InvoiceNo"
tbOwnerName.ControlSource = "OwnerName"
tbHorseName.ControlSource = "HorseDetail"
tbAmount.ControlSource = "TotalAmountPaid"
tbSumOfAmount.Visible = False
tbSumOfAmount.ControlSource = "TotalAmountPaid"
lblTotal.Visible = True
tbTotal.Visible = True
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

send object macro 2
Access form 1
Access 2007 to Outlook 2007 Attachment 2
Email Bounce Error 3
Snapshot viewer 3
Send Object attachment 3
How to email Access report? 2
emailing reports 3

Back
Top