Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a report that is being calle

Status
Not open for further replies.

sanders720

Programmer
Aug 2, 2001
421
US
I have a report that is being called via e-mail. When I was testing, I used Preview to assure that the form looked correct. In the process, I used the Activate event to populate three areas of the report, as indicated in the code below. The problem is, this judt doesn't take in the snapshot format with the e-mail.

Private Sub Report_Activate()
LoginName

Me.txtRelBy.Value = EmployeeINIT
Me.txtRelDate.Value = Date

Me.txtNeedBy.Value = Forms!frmPurchasedPartsListPRE.txtNeedBy.Value

' Close Out Form
Forms!frmPurchasedPartsListPRE.Close

End Sub


The line of code for the email looks as follows...

' Send E-Mail
DoCmd.SendObject acSendReport, "rptPurchased Parts List EE", "Snapshot Format", "abc@def.com", "xyz@def.com", , "Metro Requisition: " & RN + 1 & " Ready for Processing. Preferred Delivery by " & txtNeedBy & ".", "The attached file represents the data that is in the Purchased Requisition Database. Please save the file for reference. Feel free to contact me if you have any questions about it."


Thanks in advance for any help you can provide




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top