473,324 Members | 2,124 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,324 software developers and data experts.

Retrieve access Memo data type by ASP and include in the mail html body

21
I have tried to take Memo (Access 2000) data type in a Dim variable.
After that i have send it via e-mail text. But it is not sending the vaule.

Here is the code that i have used:

<% Dim msgDb
msgDb = "Person history: " & Recordset1.Fields.Item("personh").Value %>

## here personh is a memo data type of Ms Access

<% Dim msgDb1
msgDb1 = msgDb & "Person Name : " & Recordset1.Fields.Item("name").Value & VBCrLf & VBCrLf %>

## here name is a Text data type

## send the mail

<%
Dim msg1
msg1 = msgDb1

Dim myMail

Set objMail = CreateObject("CDO.Message")
objMail.Subject = "This is the test of E-mail"
objMail.From = " "
myMail.To = ""
myMail.Bcc = ""
myMail.TextBody = msg1
myMail.Send
set myMail = nothing
%>


Output I had got in my mail is as follows:

Person history: //here i didn't got the person history

Person Name : Sumon
Jun 28 '07 #1
0 1299

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

Similar topics

0
by: Masterblue | last post by:
Hi, Right know im teaching myself a little about CDONTS . But know I want to sent data form a database with a form. I wou ld like to do the following: - I have made a page with set of records....
3
by: TrvlOrm | last post by:
I am having great difficulty in these asp scripts, using VBscript and JavaScript. I have 4 files that all need to be linked together. The first file "Books.html" - needs to search for a Book...
9
by: Mike | last post by:
adLongVarChar to 'text' - Mapping ADO types to Native Access types? Okay, so it's not the job of Access to map these types, but has anybody, in the existance of this world ever figured out how to...
5
by: Colin Anderson | last post by:
I discovered, with great excitement, this article http://www.davison.uk.net/vb2notes.asp when researching methods for emailing from Access via Notes. Unfortunatly, when I run this I get a...
13
by: Jack B | last post by:
I'm using Access 2002 to create a database for a small opera company that my wife is involved in, and I'm more than a bit rusty because I haven't created a new Access database since about 1999. ...
0
by: Dilruba | last post by:
I want retrieve data from Ms Access 2000 database by using ASP and data type memo and after that i want e-mail that data automatically
0
by: Dilruba | last post by:
I have tried to take Memo (Access 2000) data type in a Dim variable. After that i have send it via e-mail text. But it is not sending the vaule. Here is the code that i have used: <% Dim msgDb...
0
by: ramab | last post by:
hi, i'm a bit stuck here in sending emails to multiple users which i need to read from a database. With codes below, i able only to send 2 recipients. any idea how to send to multiple users? thx...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.