Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

memo field in microsoft access

Posted on 2000-03-23
5
Medium Priority
?
198 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 40 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

972 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