I have several asp pages that display information from an Access DB. Some of the fields are memo fields. If I use simpler queries such as:
SELECT * FROM " & MyTabla & " WHERE " & MyCriteria
the memo fields are retrieved and displayed Ok.
However, if I use more "complicated" queries such as:
SELECT " & selecti & " FROM " & MyJoin & " GROUP BY " &grupi & " HAVING " & MyCriteria
the memo fields get truncated after the first 255 characters, i.e. only the first 255 characters are returned, but the fields are larger and get retrieved ok if I use the "simpler" queries!
if i use the objRS instead of the filecont in the replace function i get the same issue. If I do anything with this field (use InStr, or other menial functions) I get no records can be displayed. The contents field is a memo field within Access, i am wondering if this is causing the issue?
I have an Access 2000 db with a memo field.Into the memo field I put text with bold attributes, URL etc etc
What I need to to is converting the rich text contained into the memo field in plain text.That's because I truncate the string text but if, when I truncate it there's a rich tag the code following the truncated string is corrupted.Don't know if it's clear enough.
Just to summarize:
1) memo field cointaining rich text 2) I need to transform it in plain text
I don't know what i am doing wrong. I have an access database,and One of my fields is Memo format. So when i try to display the information in that field, I was unable to do so, nothing would come up in IE. but the data is there in the fields.something like this.
response.write(rs("description"))
when i changed the field to "text" format, everything worked perfectly fine, ASP was able to display the information stored in that field. But when i changed it back to memo, it would display nothing.is there like a special way of displaying information stored in a Memo field?
I know how to display a text field from an mdb file. You type: <%= CmdPopulateStates("fieldname") %>
where CmdPopulateStates is declared as:
Set CmdPopulateStates = Server.CreateObject("ADODB.Recordset")
But if 'fieldname' was a memo field rather than text field then the information isn't displayed. In fact, if it's anything other than text then it won't be displayed. How do I display other field types?
i'd like to know if there is some way to detect whether a field is of type MEMO (i'm using MS Access) so to behave accordingly placing a textarea instead of a textbox in the UI.
I can't print the contents of an Access memo field. Every other field type displays fine but this one.
I saw an old thread saying that you should first assign the memo field to a variable but that also doesn't seem to work (please see the attached bit of code). The memo field is "Message". Code:
I have a DSN connection for MySql with Asp. Used Text field[Memo] to store the data. While displaying the data its gives the error,if field is empty. But works well if not empty. So pls help me to check the text/memo field for empty/null. How?
I am using access Memo field to store text of large size. If I use <%=memofield%> in simple display, it does not look like a formatted field and all text comes in a single line without any break.
Even If the text is same like what I am posting in this thread, out come will not have break in browser's display.
i am testing if my memo field (access DB) has anything in it by doing
if isnull(rs("memofld")) then
do this
end if
The script is not picking up a valid value if it is null or not. I have also tried testing for it equalling "" but no lick either.
Read alot of stuff online with people having the same problem but no luck. I have tried selecting the memo field last in the sql query but this makes no difference.
I have a memo field in my recordset that will have varying amounts of text inserted into it from an online form. This is then uploaded to a table cell. At the minute it is just going in one long line across the table. How can I get this text to wrap or line break at a table width of say 500px. Is this an html or asp solution?
I have been doing adodb connections and using Access2000 for several lightweight websites. I have never had any problem with any of the SQL commands to insert, update, delete, etc.
I can insert a record into a memo field just fine ... up to a certain number of characters (nowhere near the 65K limit). After several hundred characters, the insert fails ... nothing happens ... the execute just idles and no insert is done. Anyone help? I have read about data types, etc., but everything I read sounds as if ASP and Access 2000 are suppose to handle the type conversions. They have been doing it up to this certain size.
I'm using asp to retrieve data from a server and import that data in a client that uses MSAccess, into a memo field. The text hes line breaks 0D 0A (the usual DOS line breaks). However the client sees these line breaks as two squares!
The strange thing is that when I look at the exported text (yes, I also export text from the client to the server), it also contains the same line breaks. So the exported text from the memo field can look exactly the same as the imported text, and before the export the line breaks are correctly shown als line breaks, but after the import that same line breaks are shown as squares! I would like to see line breaks after the import and NO squares.
vMessageText = "This is a test just to see if it will blow up on a large comment. Just testing again. Don't mind me."
Can I put this into my database field or is it too much and if not, how do I solve this issue. I need to be able to post messages and input for large fields.
I'm submitting data through a form with multiple rows on it, that goes out to a processing page, which then scrolls through the data row by row and sends it into a database table.
It is truncating one of the strings, the book tile string, so that if there are three words in it, only the first is getting submitted to the table. I have a feeling that it is because I have numbered the fields that are being submitted to the processing page, and therefore the field is cutting off the first word. May be wrong though about this. Here's the code:
for x = 1 to endvalue
title=request.form("title" & x) rest of loop code here
I have to do this in order for the procesing page to count and get the right text boxes and fields. Is there another way I can do this?
I am creating both a text and html version of the same newsletter and sending using CDOSYS.
Both of them incorporate a list of stories drawn from a database which are assigned to a variable storyloop.
The text version works fine, but partway throught the html version when viewed in Outlook 2000, it goes wrong. View source shows nothing obviously wrong, except that partway through the storyloop, it just stops and then goes onto the next section on the email.
Outputting storyloop to the browser gives perfect results, but if I remove all parts of the html email and just assign storyloop to the .htmlbody, I see that after exactly 1024 characters in the resulting email, I get ------ =_NextPart_000_0057_01C59E01.6E3F5F50--
Does anyone know why this would happen, and more importantly, what I can do to correct it?
i ve upgraded my asp application to windows 2003 +IIS 6.0 + virtual SMTP server enabled environment from win 2000.
so i need to update the mail procedure too.(becox i used CDONTs previously which is not supported in win 2003 by default).i have coded my mail sending script using CDO. The problem i am now facing is the mail message which is generated by my application is get truncated at the receiving end..
Also i want to mention the way i coded my mailing module. i have a vbscript function to send email that uses CDO now and mailsending script is being called by a javascript block where i am concatenating the mail body.
Also i dont receive mails at some personal domains. at the same time mail reaches free domains like yahoo,hotmail gmail.
On our previous production server, we used CDONTS to attach jpeg image to the mail. On our new server (both are Win2000) attachments are truncated to ~108B (that's what outlook shows), or 0 bytes when I try to save to disk from Outlook.
I'm sure that files to be attached are accesible, because security is set to allow for Everyone. I suspect something with SMTP config, but what? Because I couldn't find what's wrong I moved to CDO, but the result is still the same in the end. Any ideas?
I'm getting a "string could be truncated" error at the line where my strSql is executed ( my_conn.Execute (strSql) ), but it doesnt happen all the time, just periodically. I used to have this pointing to an Access db, but I changed it over to Sql, getting rid of the # datetime delimiters and replacing with ' . Wondering if the first StrSql string in the if statement if too long: Code:
i have the following update statment that this error is coming from i dont realy understand why it is thorwing the error up becuase when i was testing it i change the letter 'c' to and 'a' so not sure why it would need truncated. what does this error actual mean or what do i look for Code:
I am designing a website and integrated database for my company. In one of my pages I print out a report in which there are many text fields. I create a query and populate an html table based on the results. A major problem I am having is that when I output a memo string to a cell all of the returns that have been recorded in the string show up as spaces. I know that the returns are indeed there, evidenced by printing out correctly in Microsoft Access.I need to find a way to recognize the returns, because this page is intended to be a somewhat formal report.
this is really urgent and i cant seem to figure this out.I have his text area, once the user hits the save button, it tranfers the data to a memo datatype field in the database. ok here's the thing...every time I copy paste something, this thing throws up a wierd error..:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14) [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression '('text here....
I initially though it would ahve been becuase of the number of characters, but that was not the case.When i type things in and save , e'thing works fine
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. When I cheked the code, the problematic line was:
rs_durandal("titulo")= rs("titulo")
rs_durandal("titulo") is a Varchar field in MYSQL, while rs("titulo") is a Memo field in Access.How can I solve this problem?
I have built a search feature for a site which searches 4 fields,2 in one table and 2 in another.It's an Access database.It works a treat when searching for anything except something like "I'd", or "it's" etc.Anything with a hyphen in returns one result,or less than there in fact are.
My SQL statement is as follows:
strSQL = "select id as strID, tableID as strTableID, tagline as strTagline, content AS strContact FROM news where tagline LIKE '%" & searchString & "%' OR content LIKE '% " & searchString & "%' UNION ALL select id as strID, tableID as strTableID, tagline AS strTagline, content AS strContent from databank where tagline LIKE '%" & searchString & "%' OR content LIKE '%" & searchString & "%' ORDER BY strID"
This is my first post here. I have been looking everywhere on the forums and all over the net but i cannot find anything about this.
I did find one tutorial ages ago but didnt have a use for it at the time. What i would like to do is have a page that cycles through a database and display lets say the last 5 new records. Then display the first 200 characters of a memo field and have a "more" link which opens the full record in a detail page?
I need to be able to retieve variable length (>255 characters) messages which have been saved in a memo field in an access data base on the server. I am using the following code to test this : -
<% set objconn = server.createobject ("ADODB.connection") set objrec = server.createobject ("ADODB.recordset") objconn.open "DSN=daters" strsql = "SELECT DISTINCT messages.* FROM messages WHERE messid = 305 ;" objrec.open strsql, objconn, adopenforwardonly, adlockoptimistic,adcmdtext %>
<%=objrec("text")%>
The message is found and retrieved but truncated to 255 characters as if it were an ACCESS text field not a memo field.
The message which is originally user created on another page, writes in full to the ACCESS memo field. Also, if I download the data, and retrieve the message offline via an ACCESS form, it displays fully. Seems then like an ADO issue in retrieving memo fields Probably my syntax?
I have a memo field being called from the DB that needs to be outputted on screen. Every line that prints needs to be numbered whether the new line is formed from a text wrap or from a CrLf.
I am currently counting characters, when I reach 95 I insert a CrLf, increment the linecount, write the new line number and continue outputting. If a CrLf occurs before the 95 it simply increments and continues.
I also restrict the linecount to 40 before inserting a page break in case the output needs to be printed out. Code: