Solved

memo field in microsoft access

Posted on 2000-03-23
5
192 Views
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.
0
Comment
Question by:irene79
  • 3
5 Comments
 

Expert Comment

by:crysys
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 & "#)

Regards
0
 
LVL 25

Accepted Solution

by:
clockwatcher earned 10 total points
ID: 2652433
1.

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

2.

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

or

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

Expert Comment

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

Regards
0
 

Expert Comment

by:crysys
ID: 2652494
crysys changed the proposed answer to a comment
0
 

Author Comment

by:irene79
ID: 2659452
Thanks clockwatcher!!
0

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 http://bit.ly/XDcourse.
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