sdawson
Registered User.
- Local time
- Today, 19:48
- Joined
- Apr 22, 2003
- Messages
- 165
I've a problem in that I can send an e-mail (and .rtf attachment) only once each time I open Access (2000).
I get "E-mail has been sent" message box when trying to send more than one.
Code behind command button is:-
Dim stDocName As String
Dim stremail As String
stDocName = "email report"
stremail = Reports![email report]![emailaddress]
DoCmd.OpenReport stDocName, acViewPreview, , "[ID]=" & Forms![Data3]![ID]
DoCmd.SendObject acReport, stDocName, "RichTextFormat(*.rtf)", , "my e-mail address.co.uk", , "Subject", "Message", True
MsgBox "E-Mail has been sent"
DoCmd.Close
Is this a "feature" of Access 2000 or is my code faulty.
Any treads would be useful.
Ta
I get "E-mail has been sent" message box when trying to send more than one.
Code behind command button is:-
Dim stDocName As String
Dim stremail As String
stDocName = "email report"
stremail = Reports![email report]![emailaddress]
DoCmd.OpenReport stDocName, acViewPreview, , "[ID]=" & Forms![Data3]![ID]
DoCmd.SendObject acReport, stDocName, "RichTextFormat(*.rtf)", , "my e-mail address.co.uk", , "Subject", "Message", True
MsgBox "E-Mail has been sent"
DoCmd.Close
Is this a "feature" of Access 2000 or is my code faulty.
Any treads would be useful.
Ta