Solved

getting  a textarea field to work in Access

Posted on 2001-06-25
8
211 Views
Last Modified: 2012-08-13
I can write the data entered in a Form textarea field to the database. I can't get the data back out when reading the Record Set. i.e. if I open the Access database the data has been written to the field HOWEVER not so when reading from the browser.
I have read that there are some issues when dealing with textarea i.e. the larger scrolling fields in a form.
John Kauffman in the book "beginning ASP databases" .
I have tried defining a "notes" field in access as a "Memo" data type and also as a "text" data type.!
Koffman suggests using
getit=newstr(rs("Notes).value) directly after opening the record set.

This is difficult to use in my example when reading out the record set data to the browser:
<TEXTAREA name="Notes" rows=3 cols=50 value="<%= MyRs("Notes")%>"></TEXTAREA></TD>
0
Comment
Question by:naubrey
  • 4
  • 3
8 Comments
 
LVL 11

Expert Comment

by:sachiek
ID: 6226325
hi

<TEXTAREA name="Notes" rows=3 cols=50 value=""><%= MyRs
("Notes")%></TEXTAREA></TD>

This way it should be..

cheers!!
Sachi
0
 
LVL 7

Accepted Solution

by:
weesiong earned 100 total points
ID: 6226327
naubrey,

<TEXTAREA name="Notes" rows="3" cols="50"><%=Server.HTMLEncode(MyRs("Notes"))%></TEXTAREA>

Regards,
Wee Siong
0
 
LVL 7

Expert Comment

by:weesiong
ID: 6226329
ouch...sorry lock the question :(

sachiek is correct, please reject my answer and accept sachiek answer

So sorry.....

Regards,
Wee Siong
0
 

Author Comment

by:naubrey
ID: 6226369
Thankyou very much weesion
Your solution works just fine:
incidently I changed my "edit button" code from
Notes=(Request.form("Notes"))
to
Notes=Server.HTMLEncode(Request.form("Notes"))
and now my edited version works.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 7

Expert Comment

by:weesiong
ID: 6226462
naubrey,

Ok, no problem, but sachiek is miss using this method, i am really so sorry to locked the question :(

Regards,
Wee Siong
0
 
LVL 11

Expert Comment

by:sachiek
ID: 6226518
Oopppppppppppsssssssssss What is happening??
0
 
LVL 7

Expert Comment

by:weesiong
ID: 6226523
sachiek,

I will post 50 points to you :)

Regards,
Wee Siong
0
 
LVL 11

Expert Comment

by:sachiek
ID: 6226537
ok thanks Wee siong..

Cheers!!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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/…
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

22 Experts available now in Live!

Get 1:1 Help Now