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

x
?
Solved

getting  a textarea field to work in Access

Posted on 2001-06-25
8
Medium Priority
?
223 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 400 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

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…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

886 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