
Problem returning data from a scroll text box to an Access memo field
Hello,
I have set up a form with various objects including radio buttons, check
boxes, one line text boxes and scrolling text boxes. I am using some script
to process the form to populate an Access database.
All data comes through except for the scrolling text box data.
It appears as though anything after a hard return is not recognised. If I
write the variable to an ASP page, all the data is being stored OK in the
variable. If I process this to the database, only the first line, up until
the hard return is stored.
If anyone can help, I would be most appreciative.
Regards
Denis Ward
My code looks as follows :
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Dim cn 'Connection var
Dim rs 'Recordset var
Dim SQL
Set cn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
Session("Q1dVar") = Request.Form("Q1d") ' this is on another page.
cn.Open "DNSname"
SQL = "Select * From tblSurvey Where FirstName = 'xxxyzxc'"
rs.Open SQL,cn,1,2
rs.AddNew
rs("FirstName") = Session("FirstNameVar")
rs("Q1d") = Session("Q1dVar") ' this is the variable passing the data from
the scrolling text box named Q1d
rs.Update
rs.close
Set rs = Nothing
cn.close
Set cn = Nothing
</SCRIPT>