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 Repliesi'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 RepliesHere 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?
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 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!
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' m getting a (0x80040E2F) error, if I submit my form, with blank textboxes
to my update stored procedure. The stored procedure expect values, so how
can I detect if a form field was empty. I've tried testing to see if the
form field is null, blank and to count the characters, but I can't get it
working. My SQL table allows nulls, so it's not that.
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?
View Replies View RelatedI 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.
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.
how do u detect what the current pagename is (i.e. page.asp). also if the
command is stored in the include will it return the include file name or the
page that the command is included in name?
I have a Javascript to detect whether a client's browser has flash installed, but as so many people are putting me off relying on Javascript, could you please let me know if you know how to detect whether a browser has flash installed using ASP.
View Replies View RelatedIs there any way to detect a mac using ASP? I am trying to let a mac with no referer into my site, but NOT any other OS that does not come from my site
for instance:
If OS = Mac & http_referer = "" then
do nothing
else
If OS <> Mac & http_referer <> "http://www.mysite.com/" then
response.redirect "http://www.notmysite.com/"
end if
Here's what I have so far:
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 RelatedI have an ASP website which curently sends emails via CDONTS.
Sometimes emails are not getting sent and there is no way to detect
the error.
I would like to be able to log on a database that an email has been
sucsessfully sent or log an arror on a database if the email has
failed. One ways I have thought of is to call a VB.NET DLL which I
have written (I only have .NET not VB6!!). But i ma not sure how to
call a VB.NET DLL from an ASP page.
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
Is it possible to measure the time it takes an amount of bytes to reach the server with asp?
View Replies View RelatedHow can you detect if it is a bot that's visiting your page, or a real person? Is it in the 'Request' class or what?
I know you can ban bots from crawling your page, but this is not want I want to do, I just want a script that can define if its a real person thats visitng your webpage, or a spider.
I've got a page that increments a count when the page is hit. The problem is, I do not want search engine spiders to affect this count. I'd like to wrap the increment code in an if/then statement so that it doesn't get triggered when it sees that the visitor is a spider.How do I sense that spider? Is it with the server.variables("referrer")? Is there a good list anywhere of the names of the major search engine spiders?
View Replies View Relatedi 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
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?
At the moment i am checking that all the fields have been filled out, at the moment i am using the following...
if firstname = "" and surname = "" and address1 = "" and town = "" and
county = "" and country = "" and postcode = "" and phone = "" and email11 =
"" and email2 = "" and password1 = "" and password2 = "" then
is there a better more efficient way of doing this?
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"
I have a DB with 3 fields.
ID
Name
EMail
If I write an entry into this DB, Name and EMail, the ID is auto increment. How can I detect what ID has been created ? I want a user to submit details to me, they get the ID as a ticket number ?
I have a page with a pop up window for a 800x600 resolution. But people using a different resolution will not benefit. So is there an asp script to detect what resolution people are using. And by detecting this it will alter the pop up screen size. Get what i mean?
View Replies View RelatedThis 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 am planning out the stages for an application at work, the application
needs to detect when a client has emailed 'us' and then trigger a new row
written to a database and email the client back by return.
I can see how most of what our application needs to do can be achieved with
ASP/SQL Server - but the part I am unsure of is the email detection...I
suppose the closest thing to what we are aiming for would be one of those
'helpdesk' apps that many companies have - you email them - you get an
automated confirmation email back by return with a ticket number etc etc -
anyone got any ideas on how I can achieve this?
I have a form that also allows an image to be uploaded.
<input type="file" name="Upload">
How can I detect if a file has been uploaded, example
if [upload has been made] then
Do thing A
else
Do thing B
end if