• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

getting a textarea field to work in Access

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
naubrey
Asked:
naubrey
  • 4
  • 3
1 Solution
 
sachiekCommented:
hi

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

This way it should be..

cheers!!
Sachi
0
 
weesiongCommented:
naubrey,

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

Regards,
Wee Siong
0
 
weesiongCommented:
ouch...sorry lock the question :(

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

So sorry.....

Regards,
Wee Siong
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
naubreyAuthor Commented:
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
 
weesiongCommented:
naubrey,

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

Regards,
Wee Siong
0
 
sachiekCommented:
Oopppppppppppsssssssssss What is happening??
0
 
weesiongCommented:
sachiek,

I will post 50 points to you :)

Regards,
Wee Siong
0
 
sachiekCommented:
ok thanks Wee siong..

Cheers!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now