Click to See Complete Forum and Search --> : character count in access db field
tasneem
05-26-2005, 03:23 PM
Hi
I have an access db, with a memo field. When I response.write this field in an asp page, only 255 characters show up. Is there a way that the whole of this field would show up in the asp page?
this field is a longdescription of a product and the code I use is:
<% response.Write rsprodinfo("LongDescription") %>
thanks
phpnovice
05-26-2005, 06:28 PM
If you are extracting this data from the database using an SQL statement, then perhaps that is the problem. Try using native ADO methods only and see if you get the same result.
tasneem
05-26-2005, 06:51 PM
hi
how do i do that?
thanks
phpnovice
05-26-2005, 07:22 PM
Dim myConn, myRst, ln
Set myConn = Server.CreateObject("ADODB.Connection")
Set myRst = Server.CreateObject("ADODB.Recordset")
myConn.Open "...your connection string..."
myRst.Open "tableName", myConn, 2, 2, 2 ' adOpenDynamic, adLockPessimistic, adCmdTable
Do While Not myRst.EOF
ln = Len(myRst.Fields("memo_field_name").Value)
Response.Write ln & " = " & myRst.Fields("memo_field_name").Value & "<br>" & vbCrLf
myRst.MoveNext
Loop
myRst.Close
myConn.Close
Set myRst = Nothing
Set myConn = Nothing
ive never had a problem pulling more than 255 characters through sql.
phpnovice
05-26-2005, 09:53 PM
Maybe the column the OP thinks is a "memo" field, isn't really a "memo" field at all. ;)
tasneem
05-31-2005, 03:06 PM
Hi
The query didnt work
Access shows in table design that the fileld is memo type.
thnx anyway.