Solved

getting  a textarea field to work in Access

Posted on 2001-06-25
8
214 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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