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
ADVERTISEMENT
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
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
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
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
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
View Related
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
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
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
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
I've got the following code UPDATEing an access db (Field Type = Memo) with varying degrees of success: Code:
View Replies
View Related
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
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
I have admins who create reports with titles that my code then creates a field with that title in another databse. The admins also apply permissions to staff whether they can see that report or not.
My problem is my code doesn't know the name of these new fields, is there any way in ASP to interegate the access field names in a record set?
View Replies
View Related
I've got a really strange problem I can't explain - when I add new values into my database (Access) ir multiplies them by 100 - for example id I enter the values:
10.50
7.50
5.50
They go into the database as:
1050
750
550
The field in Access is a Double type, nullable, and set to default to 0.
My code to add it is: (the response.writes are what product the numbered output above - so I know what the form is posting, and subsequently what the database has in
its fields) Code:
View Replies
View Related
what is the easiest way to display Yes/No, True/Falst, On/Off MS Access fields as check marks on an ASP page? it would be either checked or unchecked.
View Replies
View Related
String a=Test
String b=test@test.com
How cn I concatenate this to get
String c ="""Test"" <test@test.com>"
View Replies
View Related
How do I concatenate this string value? datatype is text.Code:
chkboxvalue = RS("feild1") & RS("field2")
<%
Response.write"<tr bgcolor=silver >"
Response.write "<td><input type=""checkbox"" name="" chkboxvalue "" value=""chkboxvalue""></td>"
Response.write "<td>" & RS("field1") & "</td>"
Response.write"<td>" & RS("field2") & "</td>"
Response.write"</tr>"
%>
I am getting an error:
Microsoft VBScript runtime error '800a000d'
View Replies
View Related
String a=Test
String b=test@test.com"
How can I concatenate this to get
String c ="""Test"" <test@test.com>"
View Replies
View Related
if i've two strings like:Code:
dim pic_name=replace(Request.Form("pic_name"),"'","''")
dim pic_path="pro-details/PICs/"
how could i merge the two strings to get the complete pic-path
View Replies
View Related
I've something of this sort:
stremail="task@yahoo.com;task1@yahoo.com;task2@yahoo.com"
what I need to do is.
I need to replace and concatenate it should look like this
cdomail.Address "task@yahoo.com"
cdomail.Address "task1@yahoo.com"
cdomail.Address "task2@yahoo.com"
How to do this??
View Replies
View Related
I am developing a school Intranet and have an ASP page that allows students to upload files to the server for marking by teachers.
Unfortunately students often do not identify themselves correctly in the work they submit, so I am trying to find code that changes the name of the file they upload, by adding the their login name. (the the server variable AUTH_USER.)
AUTH_USER is easy to get but to perform the concatenation has me stumped.
View Replies
View Related
in the programming environment that i'm developing, i use asp code to interface Automated Voice Response on my MS Access database and any other capabilities. One requirement that i need to do is to conactenate several wav files into one so i can send all recordings as one on email. I will need to program this using vbscript/asp. Is this possible? Any ideas?
View Replies
View Related
how to set a variable to the contents of an array from a certain element on
for example..
myArray(0)="zero"
myArray(1)="one"
myArray(2)="two"
myArray(3)="three"
myArray(4)="four"
myArray(5)="five"
myArray(6)="six"
I would like to set all values after two to a string variable..separated by underscores
str="three_four_five_six"
is there convenient string method for this ..?
View Replies
View Related
How do you create variables in for loop Code:
View Replies
View Related
I have an asp page and wish to concatenate a Contact Name textbox to part of an email
address and place this concatenated text into an email textbox. I know how to concatenate
but unsure of how to implement this via the textbox event, onexit. Can this be done?
The code I'm using is:
Dim EnterName
Dim NewEmail
EnterName = Request.Form("txtContactName")
If Instr(EnterName," ") <> 0 Then
EnterName = Replace(EnterName," ",".")
NewEmail = EnterName & "@something.com"
End If
The html code for the email textbox is:
<Input type="text" Name="txtEmailAddress" value="<%=NewEmail%>>
Like I said not sure if this will not work until the txtContactName has an OnExit event, or something similar.
View Replies
View Related
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
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
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
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
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
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
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