John Big Booty
AWF VIP
- Local time
- Tomorrow, 00:29
- Joined
- Aug 29, 2005
- Messages
- 8,243
I have a buttton that generates and emails a report.
It run a code on the "On click" event that looks like this:
Private Sub Command7_Click()
On Error GoTo Err_Command7_Click
Dim stDocName As String
stDocName = "RPT_SFPOStatusGen"
DoCmd.SendObject acReport, stDocName, "Rich Text Format(*.rtf)", , , , "Order Tracking Report", "PO Tracking Report attached"
Exit_Command7_Click:
Exit Sub
Err_Command7_Click:
MsgBox Err.Description
Resume Exit_Command7_Click
End Sub
That runs fine, but what I would like to do is replace the "PO Tracking Report attached" text with a longer more complicated piece of text that is stored in a table TBL_EMText.
I'm sure there is a simple solution however it has eluded me this afternoon
It run a code on the "On click" event that looks like this:
Private Sub Command7_Click()
On Error GoTo Err_Command7_Click
Dim stDocName As String
stDocName = "RPT_SFPOStatusGen"
DoCmd.SendObject acReport, stDocName, "Rich Text Format(*.rtf)", , , , "Order Tracking Report", "PO Tracking Report attached"
Exit_Command7_Click:
Exit Sub
Err_Command7_Click:
MsgBox Err.Description
Resume Exit_Command7_Click
End Sub
That runs fine, but what I would like to do is replace the "PO Tracking Report attached" text with a longer more complicated piece of text that is stored in a table TBL_EMText.
I'm sure there is a simple solution however it has eluded me this afternoon