C
Chey
I found this code
Dim strRpt As String
Dim lngID As Long
Dim strEmail As String
strRpt = Me.lstReportNames
lngID = Me.lstCompanyID
strEmail = Me.lstCompanyID.Column(2)
DoCmd.OpenReport [Travel Request 0 Layover], acViewPreview,,,"[TA
Number]=[TA Number]
DoCmd.SendObject objecttype:=acSendReport, _
ObjectName:=strRpt, outputformat:=acFormatSnapshot, _
To:=[Acting Manager Email], Subject:=[TA Number] & "has been approved."
I added in my information but do not understand
Dim strRpt As String
Dim lngID As Long
Dim strEmail As String
strRpt = Me.lstReportNames
lngID = Me.lstCompanyID
strEmail = Me.lstCompanyID.Column(2)
this part
All I want to do is send a report as an attachment in an email. To an email
address that is on the form.
I have a command button on my form now. When I push the button, I want it
to print one copy and send an email.
Can you please help me quickly. I would really like to get this going. I
have attempted other email codes and so far been somewhat sucessful.
Thanks for all your help
Dim strRpt As String
Dim lngID As Long
Dim strEmail As String
strRpt = Me.lstReportNames
lngID = Me.lstCompanyID
strEmail = Me.lstCompanyID.Column(2)
DoCmd.OpenReport [Travel Request 0 Layover], acViewPreview,,,"[TA
Number]=[TA Number]
DoCmd.SendObject objecttype:=acSendReport, _
ObjectName:=strRpt, outputformat:=acFormatSnapshot, _
To:=[Acting Manager Email], Subject:=[TA Number] & "has been approved."
I added in my information but do not understand
Dim strRpt As String
Dim lngID As Long
Dim strEmail As String
strRpt = Me.lstReportNames
lngID = Me.lstCompanyID
strEmail = Me.lstCompanyID.Column(2)
this part
All I want to do is send a report as an attachment in an email. To an email
address that is on the form.
I have a command button on my form now. When I push the button, I want it
to print one copy and send an email.
Can you please help me quickly. I would really like to get this going. I
have attempted other email codes and so far been somewhat sucessful.
Thanks for all your help