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


ADVERTISEMENT

Memo Text Field Width

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?

View Replies View Related

Problem Importing Text In Access Memo Field

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.

View Replies View Related

Cannot Insert Large Text Into Database Memo Field

I'm trying to insert this text into a memo field:

Set cnn = CreateObject("ADODB.Connection")
str = Server.MapPath("database/alumni.mdb")
strDB = "Provider=MICROSOFT.JET.OLEDB.4.0;Data Source=" & str
cnn.Open strDB
Set rst = CreateObject("ADODB.Recordset")

sql = "INSERT INTO tblMessage (MessageID, UserID, PostTypeID, Subject,
DatePosted, MessageText, Active) Values ('" & vMessageID & "','" &
vUser & "', " & vPostType & ",'" & vSubject & "','" & vDatePosted &
"','" & vMessageText & "',0)"

rst.Open sql, cnn, adOpenStatic, adLockOptimistic

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.

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

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

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

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

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

Memo Field And Isnull Issue

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.

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

Insert MEMO Field To Access 2000

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.

View Replies View Related

Text Field

How i can get a text field that would accept apostrophes?

here's my code:

Title = Replace(Request.form("AddTitle")
Message = Replace(Request.form("AddMessage")
Author = request.Form("AddAuthor")
TimePosted = request.Form("AddTimePosted")
DatePosted = request.Form("AddDatePosted")
sql="INSERT into NEWS (title, message, author, date_posted, time_posted) "
sql = sql & "VALUES ('" & Title & "', '" & Message & "', '" & Author & "', '" & DatePosted & "', '" & TimePosted & "') "
Conn.execute(sql)
Response.write sql

View Replies View Related

Text Field!

i am using ASP with recordset I am using nvarchar field and TEXT field in ms sql server
i update it as follows

rs("thenvarcharfield") = request.form("somedata")
rs("thetextfield") = request.form("someotherdata")
rs.Update

at one page it works fine and when i use the same kind of code to update another TEXT field it doesn't update and the I.E. loading bar increases very slowly and the next page never loads someone suggested to use .appendchunk i used rs.appendchunk and i got the error "object doesn't support this property or method" he also said that .appendchunk cannot be used to update nvarchar.

i removed the code to update TEXT field and the page loaded as expected (normally)!
Why one text field worked fine while the other didn't?

View Replies View Related

Validation For Text Field

I need help regarding the string. In HTML page i have a text field to enter Name. How do i check whether its valid name or not, on the server side.

View Replies View Related

Text Field Control

I want to create two radio button
Yes and No. Only on select that radio button 'Yes',
the text field should get enabled.
How to do this?

View Replies View Related

Text Field Acceptance,

i have a table in which i have many text boxes, they are named as a1,a2,a3,a4 to a16 the next row is b1,b2,b3 to b16 and so on up to G1,G2 etc, where the user enters his data, what i want to do is only allow the user to enter numbers, which can have decimals if required,

how can this be done, also i have another set of textboxes through which i want to loop and prevent user the user from entering the same data in more then one box how can this be done any help will be appreciated thank you.these are the text boxes a1,b1,c1,d1,e1 etc which is actually the first column in the table.

i have created the following array:

letterArray[0] = 'A'
letterArray[1] = 'B'
letterArray[2] = 'C'
letterArray[3] = 'D'
letterArray[4] = 'E'
letterArray[5] = 'F'
letterArray[6] = 'G'

how can i loop through to achive the above.

View Replies View Related

6 Characters From The Text Field

May I know how to restrict the user to key in at least 6 characters from the text field by using asp? If possible

View Replies View Related

Updating A Text Field

I am trying to write some code that inserts or updates a text field in my SQL Server 2000 database. The SQL statement is created using a submit from a form, and the text is coming from a <textarea>, and therefore being placed into the SQL statement via a Request("field"). However, due to limitations in SQL Server 2000 and text fields, I can not use a simple Update or Insert command with text over 8000 bytes.

Does anybody have any sample statements that will help me update that field with larger amounts of data? I have tried using the WRITETEXT function and UPDATETEXT function with little or no success.

View Replies View Related

Text Field Characters

i have a form that has two hidden fields.The first hidden field will has a value like this 'EM12HILL.JPG'.The second hidden field has a value like this 'AA01'.What i would like to happen is when submit button is pressed, the characters in the first hidden field will change to the following 'AA01HILL.JPG', as they are passed to another form.

View Replies View Related

Clearing A Text Field

How do I clear the data in this field before using the date function.?

<input type="text" size=35 name="DepartCentralDate" value="<%=x_DepartCentral %><%= FormatDateTime(Date, 1) %> &nbsp;&nbsp;<%= FormatDateTime(Now, 3)%>">

View Replies View Related

Combine Text + Rs.field

Is it possible to recall a variable with the combination of text + rs.field? i want to recall the variable "speler1", at the place weher rs("speler") is 1. It's probably again easy.

View Replies View Related

Shorten Text Field

I been searching google but I can't find how to shorten a text field and if it has been shortened to place a space and triple dot (...) after it. So if the text field was 75 characters long it would shorten it to 50 and add " ...". Is it also possible to shorten it to 50 to the nearest word? This is what I got so far: Code:

...
<td>
<p>
<% = left(rs("my_text").value,50) & IF rs("my_text").count > 50 Then Response.Write(" ...") End If %>
</p>
</td>
...

View Replies View Related

Updating A Text Field

In a form I have one pulldown menu, and one text field. Both MUST get their values from an Access database they connect to. Without submitting the form, how do I change the value appearing in the text field by changing the selection in the pulldown menu? Remember both the text field and the pulldown menu MUST get their values from a database.

View Replies View Related

Text Field Format

I need a user to follow a format. For example entering a date. I need the user to enter a date in this format MM/DD/YY. How do I check to see if they followed that format?

I need the user to enter a currency amount without the "$" sign. How do I check to see if the Request.Form("price") value has a "$" sign in it? I guess I need to know how to parse a string in ASP.

View Replies View Related

Text Field Value & Label

Is it possible to make the following codes Value = idSpecies but its Label TimberSpecies?

<input name="f1" type="text" id="f13" value="<%=((rsResults.Fields.Item("idSpecies").Value))%>" size="33">

I have a database with the following...

Table Name.....Query1
Field Name......idSpecies..........Auto Number
Field Name......TimberSpecies...Text Field

View Replies View Related

Passing A Text Field From Asp To Asp

I have an asp page that allows cdont mailing of form field values to persons matching slected criterea in their profile.

Works good if the user goes straight from the form to the email-making asp.

Then the user asked for a proofreading screen and what seemed simple took a bad turn.

When I try to pass from the proof reading screen to the asp that actually sends the email I only get the first word. as soon as a blank is encountered in the text it thinks it it done. Code:

View Replies View Related

Moving Fom Text Field

i have a formular using two text field. i want , when i finish writnig , moving to the next using " Enter " key.

View Replies View Related

Lock Down A Text Field

how to lock down a text field so that data displayed within it cannot be altered?

View Replies View Related

Search Text Field

I want to search text field and highlight the text. This is the code,

Code:

strText = cstr(Request.form("strText"))
strText = uCase(strText)
strTextWhere = ""
strTextWhere = " and (Specialisation
like '%"&strText&"%') "

I have a lot of data in different cases. I can do the search, let say i want to search by keyword project, it will display all the "project", "Project" and "PROJECT". But now i can only hightlight the "PROJECT" only. I think this is because of ucase(strText). Is there any way for me to highlight all (either lower, upper and mixed cases)?

View Replies View Related







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