Solved

getting  a textarea field to work in Access

Posted on 2001-06-25
8
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 

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
 
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

622 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