D
Dave Elliott
This code links the form with the report I want to e-mail instead of
printing.
The Customers E-Mail Link is already on the form, the control is named E
Mail
Outlook Express is active E-Mail client. Thanks, in Advance
On Error GoTo Err_Command450_Click
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = "[Order ID]= Forms![Edit Quote]![Order ID]"
stDocName = "InvoiceReports"
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
'DoCmd.PrintOut acPage
'DoCmd.Close acReport = "InvoiceReports"
Exit_Command450_Click:
Exit Sub
Err_Command450_Click:
MsgBox Err.Description
Resume Exit_Command450_Click
printing.
The Customers E-Mail Link is already on the form, the control is named E
Outlook Express is active E-Mail client. Thanks, in Advance
On Error GoTo Err_Command450_Click
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = "[Order ID]= Forms![Edit Quote]![Order ID]"
stDocName = "InvoiceReports"
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
'DoCmd.PrintOut acPage
'DoCmd.Close acReport = "InvoiceReports"
Exit_Command450_Click:
Exit Sub
Err_Command450_Click:
MsgBox Err.Description
Resume Exit_Command450_Click