473,394 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Email content of fields on a record, using MS-Outlook

Hello:
I'm working with a table containing a series of fields that include 2 memo fields. Using a form I add one record at a time, and these fields get populated; once the task is finished, I'd like to copy the content of these memo fields into the body of an Outlook email msg. so I can complete the task this table has been designed for.

On the form, I have a link that can call Outllook, however, I haven't found a way to transfer the content of these fields to my e-mail msg.

My VB is really poor (NIL, I'd say).

Any suggestions are more than welcome.
Jun 19 '07 #1
5 1814
MMcCarthy
14,534 Expert Mod 8TB
Please post the code you are currently using to email to outlook as well as the control names of the two memo fields.
Jun 20 '07 #2
Please post the code you are currently using to email to outlook as well as the control names of the two memo fields.
*
Hi, Thanks for replying.
To email to Outlook, I have inserted a hyperlink to the form, when I click on it, Outlook opens with a new message. The control names for the memo fields: "original_pmnt" and "documentation".
Jun 20 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
You will need to use code to send your email. There are a number of previous questions on this topic. Check out some of the following:


http://www.thescripts.com/forum/thread630972.html
http://www.thescripts.com/forum/thread644508.html
http://www.thescripts.com/forum/thread609479.html
http://www.thescripts.com/forum/thread630337.html
Jun 21 '07 #4
Hello and thanks again.
I was able to write some code and now that I have the required text on the email body, I'd like to know if I can change the font size, bold it and underline it.
Any suggestions?

Here's the code I'm using to populate the email body:

Private Sub Command33_Click()
On Error GoTo Err_Command33_Click

Dim stMemoField1 As String
Dim stMemoField2 As String
Dim stAccount As String
Dim stHeader1 As String


stMemoField1 = documentation
stMemoField2 = original_pmnt
stAccount = account
stHeader1 = "Copy of Return Wire"


DoCmd.SendObject , , , , , , "Return of Funds - Your acc.: " & stAccount, stHeader1 & Chr$(13) & stMemoField1 & Chr$(13) & Chr$(13) & stMemoField2

Exit_Command33_Click:
Exit Sub

Err_Command33_Click:
MsgBox Err.Description
Resume Exit_Command33_Click

End Sub
Jun 21 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
As far as I know this isn't possible but it may be that some of the other experts know of a way. I would suggest posting a new thread with this code and asking the question.
Jun 21 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: James | last post by:
I am currently working on a PHP based website that needs to be able to draw from Oracle, MS SQL Server, MySQL and given time and demand other RDBMS. I took a lot of time and care creating a...
4
by: Oliver Spiesshofer | last post by:
Hi, is there a script out there that can send RSS feeds to a given email account? I have search the usual suspects (google, SF, FM, hotscripts) but could not find anything thanks Oliver
3
by: Tom | last post by:
Hi, I am currently looking for a Content Management System for one of my project in ASP.NET. Here are the requirements: * web based content management * ability to enter content/fragment...
36
by: Liam.M | last post by:
hey guys, I have one last problem to fix, and then my database is essentially done...I would therefore very much appreciate any assistance anyone would be able to provide me with. Currently I...
2
by: David Lozzi | last post by:
Howdy, I'm new to .Net 2.0... Getting "System.Net.Mail.SmtpException: The operation has timed out" on this script at the smtpClient.Send(msg) line Dim msg As New MailMessage
6
by: Eric Layman | last post by:
Hi, I have fields from textareas. With a click of a button, php is able to grab these fields and by using header(), convert the output to Ms Word doc. But the outcome of the word doc...
4
by: Ron | last post by:
I have this code on one of my forms, the code takes whatever is in textboxes and adds it to a MS Access Database. It then shows a message that the operation was completed. Is there a universal...
12
by: bpw22az | last post by:
Bare with me guys. I will try and make this short and to the point. I have a website that allows students to check their admission status by submitting their email address which in turn sends them...
5
by: =?Utf-8?B?U3RldmUgQXVkdXMsIENoYXVjZXIgQkVDLCBTaGVm | last post by:
How do I alter the follow asp code so the from field produces the a friendly address "Name <something@changeme.com>" Code is presently used. <% If Request.Form("btnSend").Count 0 Then Set...
2
by: sindhudixit | last post by:
Hey, I am having a user fill out a form then the fields are going to uploaded to my database. So, at this point, when the user hits the submit button I want three things to happen: 1. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.