memo field in microsoft access

Posted on 2000-03-23
Last Modified: 2012-06-27
when i retrieve data from the memo field, it doesn't show the linebreak .. the sentences are join together. How can i retrieve the details with linebreaks?

i have a column with type date/time and the format is short time. how do i issue an insert statement?

e.g. temp= '12:00'
sql = "insert into table ('" & temp & "')"

the above sql gave me an error.
Question by:irene79
  • 3

Expert Comment

ID: 2652415
The memo field is correct but think that when you retrieve it the newline character (vbcrlf) has no meaning in a HTML context. You should search for each vbcrlf and replace then with a <br>

The correct sentence for insert is:

sql="insert into table (datecolum) (#" & temp & "#)

LVL 25

Accepted Solution

clockwatcher earned 10 total points
ID: 2652433

myMemo = rs("memofield")
myMemo = replace(myMemo, chr(13), "<BR>")
response.write myMemo


sql = "insert into table (fieldname) values ('" & temp & "')"


sql = "insert into table (fieldname) values (#" & temp & "#)"

Expert Comment

ID: 2652491
You're right clockwatch. I forgot the 'values'.


Expert Comment

ID: 2652494
crysys changed the proposed answer to a comment

Author Comment

ID: 2659452
Thanks clockwatcher!!

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now