RE: Email fro FORM
- From: "khashid via AccessMonster.com" <u18968@uwe>
- Date: Fri, 11 May 2007 13:42:08 GMT
Thanks very much, trust me i love to go through the help files and it always
help me out but at this moment i really didnt have time to do that.
It worked fine thanks again for your help. One last thing if u dont mind
helping me out is when the email is ready if i cancel the email it gives a
run time error that email was canceled and ask to debug
How can I have some other error so it would not ask for debug or just
simply not to have error
Daniel wrote:
You'll need to learn to start using the help a bit more. It covers the
parameters for the sendobject method in detail.
based on the help file we can get the base synthax for this method which is
expression.SendObject(ObjectType, ObjectName, OutputFormat, To, Cc, Bcc,
Subject, MessageText, EditMessage, TemplateFile)
1. so to add a Cc recipient you need only add a 5th variable to your coding
2. We need only concateneate the info on the form into a single string
3. Simple string manip.
4. is controled by the EditMessage boolean value
i. you should start calling you buttons by real names and not the default
values (this will simplify your life when reviewing your code at a later
date, trust me!!!).
Private Sub Command21_Click()
Dim SendTo As String
Dim SendCc As String
Dim MySubject As String
Dim MyMessage As String
SendTo = Me.[Email]
SendCc = "CcRecipientEmailAddressGoesHere"
MySubject = "Complain No :" & Me.[Complain_No]
MyMessage = "Complain No:" & Me.[Complain_No] & vbcrlf & "Customer Name:" &
Me.[Customer_name]
DoCmd.SendObject acSendNoObject, , , SendTo,SendCc , , MySubject, MyMessage,
False
End Sub
Hi All, I need assistance with the following code am using to send an email[quoted text clipped - 21 lines]
from my form.
4- I want the email sent directly as soon the user hits send, right now it
stops for editing.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200705/1
.
- Follow-Ups:
- RE: Email fro FORM
- From: Daniel
- RE: Email fro FORM
- References:
- Email fro FORM
- From: khashid via AccessMonster.com
- RE: Email fro FORM
- From: Daniel
- Email fro FORM
- Prev by Date: Re: How object.HEIGHT scale is different from object.TOP?...
- Next by Date: Re: DMax Syntax (?) - DMax_Try_Steele_Error.jpg (0/1)
- Previous by thread: RE: Email fro FORM
- Next by thread: RE: Email fro FORM
- Index(es):
Relevant Pages
|