Struggling With Displaying Memo Fields In Textarea

I'm using an Access database and asp to bring in a series of table contents to textarea fields so if wording wants changing in the database I can do it using an asp form. All works ok apart from a couple of records that are memo fields.

I have displayed the field contents by ..........

<%=(locationwords.Fields.Item("ftexta").Value)%>

and they are shown ok.

If i try and use the same syntax for bringing the memo field in to a textarea nothing is displayed.

<textarea name="textarea" cols="50" rows="2"><%=(locationwords.Fields.Item("ftexta").Value)%></textarea>

Any clues as to what i'm missing to get the text to appear so it can be modified and posted using a form.

View Replies


ADVERTISEMENT

Memo Fields

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"

View Replies View Related

Question About Memo Fields

What would be the maxlength and size attribute of a Text Field in HTML where the backend Access Database field is of Memo Type?

View Replies View Related

ACCESS Memo Fields

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?

View Replies View Related

Concatenate Access Memo Fields

I have an ASP that displays two MS Access memo fields in separate table cells just fine. However when I concatenate them with SQL as in "select fld1 & fld2 as temp...." to display them in one cell only part of the first field is displayed in the table. What is causing this?

View Replies View Related

Displaying 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?

View Replies View Related

Extracting Sentences From Memo Fields Containing Specific Strings

I have an access database and am currenlty using classic asp for most of my coding and am trying to extract sentences from the memo field that contain specific strings, in this case "<b>"

The memo fields contain a lot of data so filtering becomes an issue, so i just want to be able to only display the sentences within the memo field i.e. between "." and "." OR beginning of record and "." OR "." and end of record that contain the string "<b>"

View Replies View Related

Displaying TextArea

I am trying to display data pulled from a sql db in a text area. The field in the db is of type ntext. I am printing the data using the following code.....

<TEXTAREA name="HTML" COLS=100 ROWS=21>
<%Response.Write(rsCreativeElement("ElementHTML"))%>
</TEXTAREA>

But this is printing as <Long Text>, how can I print the actual data from the db.

View Replies View Related

Textarea Not Displaying

I have this textarea in my form that is not displaying data. BUT when you look at the source you can see the text in the 'value'.here is the code:Code:

<textarea name="txtgen" value="<%=rs("gen_av_m")%>" cols="138" rows="5" id="txtgen"><%=rs("gen_av_m")%></textarea>

there are no error messages.

View Replies View Related

Searching Multiple Memo Fields In Multiple Tables In Access

I have a search option on my website, which should perform a search on 4 fields, as follows:

tblNews
headline
content

tblDatabank
filename
description

It only needs to return matches which are an exact match of their search criteria. For instance, searching for "I am here" would return a record which contained "I am here", but not just "I" or "I am" etc.

I need to return all these records as part of one recordset preferably, as I want to be able to order them etc., though I imagine you may suggest I use an array somehow to merge two recordets etc., then reorder them?

View Replies View Related

Displaying Appropriate Fields

I have a loads of records in an Access database relating to publications. The publications come in 3 forms, pdf, Word or .htm so I have fields for each called PDFurl, Wordurl and Publink. What I want to do is, if any of those fields contain a value then display an appropriate icon (which will link to the publication).

I'm ok with the latter part but how do I determine if any of the fields have a value and if so display the relevant icon? Rather than do a load of if then statements I was wondering is there a quicker way of doing this, perhaps using a Case?

View Replies View Related

Displaying Fields

i need to find out how I can display fields with certain words in differnet parts of a page. For instance records that contain the word "enterprise" should be at the top, records that contain "Integrate" should be in the middle and so on. Unfortunately the records don't just contain those words....the title might be "Receive & Process Oral & Written Communication - Enterprise Skills Cluster". So I'm guessing I need to use some sort of wildcard statement like:

<% If rs("field") = "* enterprise *" then %>

I'm just not sure of the right syntax.

View Replies View Related

Displaying Access Fields

I need to display multi-paragraph articles from a field in my database, but every time they display, they come up as one long paragraph with no line breaks, even though there are breaks within the database field.

I am using MS Access 2000 with field "data type" set to Memo and MM Dreamweaver UltraDev. What do I have to do to get the line breaks in the appropriate spots?

View Replies View Related

Displaying Required Fields

I've run into this problem before and it's related to the order in which you select fields.but only when one is a text field.

Comes down to this,if you have multiple database fields being selected,either write your sql so that the text field is selected last yes, the right-most fieldname in the comma-delimited list OR you can use 'select *' in your queries as long as the text field(s) is/are the last/rightmost field in the table.

I've only run into this bug on ASP/MS Sql so I can't comment on other databases.

View Replies View Related

Adding Database Fields And Displaying Them

This code has worked in the past on this same page, and for some reason it doesn't want to calculate the numbers anymore. Anyone see anything that is out of whack?

Basically I am taking the input numbers for each field and adding them up on one column, then taking the totals of all of those columns and adding it up to display as an overall total. Code:

View Replies View Related

Struggling To Count...

I have a database with three fields, id, code, and feedback code is a reference so there are many occurances of the same code, and feedback will be either 0,1,2 =, or 3

I am trying to count the feedback scores to display them like this

Code 0 1 2 3
123 10 12 6 20
321 2 6 10 30

etc

I think it can be done using count() but can't quite work it out.
I have got part way using ,

SELECT code, Feedback, Count(id) as myid FROM tblfeedback GROUP BY code, Feedback ORDER BY code Feedback

but this displays it like,

code feedback total
123 0 10
1 12
2 6
3 20

Any ideas what my SQL should look like.

View Replies View Related

Struggling To Insert By ASP Into My Site

I can't get my site to work when i put my asp scripting into it. I have used CSS to design site but which ever way i place my asp into the site it goes wrong with my design or the asp dosen't work. Code:

View Replies View Related

Display VbCrLf's From Textarea To Textarea

how to dispaly text from a text area on a page as page copy (using the replace function)

How do I display this text inside another textarea, holding formatting? All variations of 'what I thought would work' do not.

I am using the following function:

Function DisplayMemo(theText)
DisplayMemo = ""
on error resume next
DisplayMemo = CStr(theText)
if (len(DisplayMemo) > 0) Then
DisplayMemo = Replace(DisplayMemo, vbCrLf, "<br>", 1, -1, 1)
end if
End Function

calling it like:

<textarea cols=119 name=ownSubmitted rows=7>" & DisplayMemo(getInfo(0)) & "</textarea>

NOTE: getInfo(0) is a variable holding my value. Yes the value is there. It is showing the text I want, however the <br>'s are rendered inside the text area?

View Replies View Related

Textarea Inside Of Textarea

I am writing a small database utility to catalog all of my favorite ASM/JS/VBS functions and scripts on an asp page. Everything is going smoothly except for one thing that I can't quite seem to think my way around.

I am using a <textarea> to display the code but some of my scripts have <textarea> tags in them and when the </textarea> tag is entered, it closes my <textarea> and the rest of the code ends up outside of the textarea.

Example: (the code after the middle </textarea> show up outside of the textarea box)

<textarea>
code...code...code...
code...<textarea></textarea>code...
code...code...code...
</textarea>

View Replies View Related

Memo String

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.

View Replies View Related

Memo Datatype

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

View Replies View Related

Memo Formatting

i have an access database which i am displaying on a .asp page-the field i am using is a memo filed full of formatted text.

The code i have been used to using to keep the memo text formatting is: -
[<%=Replace(Recordset1.Fields.Item("Description").Value,chr(13),"<br>")%>]

But the site was created by someone else and the way they place this content is: -
[<%=productdescription%>]

Which obviously does not keep the memo text formatting

View Replies View Related

Memo To Text

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?

View Replies View Related

Memo Snippet

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?

View Replies View Related

Working With A Memo Field

Here is what I am trying to do

filecont = objRS("contents")
filecont = replace(filecont,vbLF,",")

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?

View Replies View Related

Content From A Memo Field

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

View Replies View Related

Display Access Memo

I stored several lines of information in a Access memo field.I use follow ASP response.write statement to display contain of the memo field.

Response.Write sa1("job_detail")

However, all the lines are mixed into one line. How can I show it in the original format?

View Replies View Related

Information From A Memo Field

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?

View Replies View Related

Detecting MEMO Field

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.

View Replies View Related

Memo Field Truncated

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!

View Replies View Related

Can't Print An Access Memo Field

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:

View Replies View Related

Handle Memo/text Field

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?

View Replies View Related

Formatted Display Of Memo Field

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.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved