ChrisF
New member
- Local time
- Today, 21:29
- Joined
- Jun 12, 2003
- Messages
- 8
I have created a Simple form, which when someone phones in to work sick there details are entered into a form and then Emailed to the wages department.
The button i created mails ALL the records in the table and i only want it to mail the current record to the Wages Department.
This is my code so far
************************************
Private Sub Command19_Click()
On Error GoTo Err_Command19_Click
Dim stDocName As String
Dim CN As Integer
CN = Me.CN
stDocName = "Sick"
DoCmd.SendObject acReport, stDocName, acFormatHTML, "GailW", , , "Notification of Absence From Work", "Please find attached Absence from work Notification"
Exit_Command19_Click:
Exit Sub
Err_Command19_Click:
MsgBox Err.Description
Resume Exit_Command19_Click
End Sub
************************************
Any idea on how i can get it just to mail the current onscreen details???
(Using a report in HTML format as a attathment to hold the details in the Email atm, if i could just send the details as txt in the email that would be even better)
Thanks

The button i created mails ALL the records in the table and i only want it to mail the current record to the Wages Department.
This is my code so far
************************************
Private Sub Command19_Click()
On Error GoTo Err_Command19_Click
Dim stDocName As String
Dim CN As Integer
CN = Me.CN
stDocName = "Sick"
DoCmd.SendObject acReport, stDocName, acFormatHTML, "GailW", , , "Notification of Absence From Work", "Please find attached Absence from work Notification"
Exit_Command19_Click:
Exit Sub
Err_Command19_Click:
MsgBox Err.Description
Resume Exit_Command19_Click
End Sub
************************************
Any idea on how i can get it just to mail the current onscreen details???
(Using a report in HTML format as a attathment to hold the details in the Email atm, if i could just send the details as txt in the email that would be even better)
Thanks
