473,791 Members | 3,090 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

retrieving formatted messages from an ACCESS memo field.

Hi ... My application saves variable length user-generated messages in an
ACCESS memo field. ASP writes these messages correctly retaining CR LF to
generate new paragraphs. (have checked this in the actual data base).

However , when I retrieve a message into another web page, the CR LF
characters are lost, and the message displays as one long sequence of
unformatted text. Anyone any idea how I can overcome this?

Using WIN XP/FP2000/IIS and the following code:-

<%
set objconn = server.createob ject ("ADODB.connect ion")
set objrec = server.createob ject ("ADODB.records et")
objconn.open "DSN=daters "
strsql = "SELECT messages.text FROM messages WHERE messid = 305 ;"
objrec.open strsql, objconn, adopenforwardon ly, adlockoptimisti c,adcmdtext
%>

<%=objrec("text ")%>

Thanks in advance Hugh
Jul 19 '05 #1
3 1492
http://www.aspfaq.com/2188

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Hugh Welford" <hu**********@b tinternet.com> wrote in message
news:#Y******** ******@TK2MSFTN GP10.phx.gbl...
Hi ... My application saves variable length user-generated messages in an
ACCESS memo field. ASP writes these messages correctly retaining CR LF to
generate new paragraphs. (have checked this in the actual data base).

However , when I retrieve a message into another web page, the CR LF
characters are lost, and the message displays as one long sequence of
unformatted text. Anyone any idea how I can overcome this?

Using WIN XP/FP2000/IIS and the following code:-

<%
set objconn = server.createob ject ("ADODB.connect ion")
set objrec = server.createob ject ("ADODB.records et")
objconn.open "DSN=daters "
strsql = "SELECT messages.text FROM messages WHERE messid = 305 ;"
objrec.open strsql, objconn, adopenforwardon ly, adlockoptimisti c,adcmdtext
%>

<%=objrec("text ")%>

Thanks in advance Hugh

Jul 19 '05 #2
I just use something along the lines of;

Replace(rst("Th eText"), vbCrlf, "<br>")

Which suffices......

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Hugh Welford" <hu**********@b tinternet.com> wrote in message
news:#Y******** ******@TK2MSFTN GP10.phx.gbl...
Hi ... My application saves variable length user-generated messages in an
ACCESS memo field. ASP writes these messages correctly retaining CR LF to
generate new paragraphs. (have checked this in the actual data base).

However , when I retrieve a message into another web page, the CR LF
characters are lost, and the message displays as one long sequence of
unformatted text. Anyone any idea how I can overcome this?

Using WIN XP/FP2000/IIS and the following code:-

<%
set objconn = server.createob ject ("ADODB.connect ion")
set objrec = server.createob ject ("ADODB.records et")
objconn.open "DSN=daters "
strsql = "SELECT messages.text FROM messages WHERE messid = 305 ;"
objrec.open strsql, objconn, adopenforwardon ly, adlockoptimisti c,adcmdtext
%>

<%=objrec("text ")%>

Thanks in advance Hugh

Jul 19 '05 #3
Thanks very much guys

Hugh
"Hugh Welford" <hu**********@b tinternet.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi ... My application saves variable length user-generated messages in an
ACCESS memo field. ASP writes these messages correctly retaining CR LF to
generate new paragraphs. (have checked this in the actual data base).

However , when I retrieve a message into another web page, the CR LF
characters are lost, and the message displays as one long sequence of
unformatted text. Anyone any idea how I can overcome this?

Using WIN XP/FP2000/IIS and the following code:-

<%
set objconn = server.createob ject ("ADODB.connect ion")
set objrec = server.createob ject ("ADODB.records et")
objconn.open "DSN=daters "
strsql = "SELECT messages.text FROM messages WHERE messid = 305 ;"
objrec.open strsql, objconn, adopenforwardon ly, adlockoptimisti c,adcmdtext
%>

<%=objrec("text ")%>

Thanks in advance Hugh

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2054
by: mbev | last post by:
I would like to have in a field a big amount of text with a size more than 64K. This field will have text and HTML tags. Is there a way to do this in access? Ok, I may be I need to explain myself better. I will have a CMS(Content Management System) in a web page, where users can paste big amount of text + HTML tags then after submitting the form in ASP this text + HTML tags will write to an ACCESS database . The MEMO datatype only let me...
1
1586
by: Erick | last post by:
Is it possible to store formatted text into a memo field. From for example Visual Basic?
6
2711
by: Matt | last post by:
I'm having difficulty with trying to update a Access memo field through an SQL statement where the value I'm trying to pass is longer than 255 characters. The field is being truncated. I'm using a simple INSERT INTO sql command. Anyone know a way around this? Sample strSQL = "INSERT INTO tblListings " & _ "(Dir, Street, City, State, " & _ "AFirst, Price, ALast, MainPhoto, Summary, Details,
9
5740
by: RMC | last post by:
Hello, I'm looking for a way to parse/format a memo field within a report. The Access 2000 database (application) has an equipment table that holds a memo field. Within the report, the memo field is printed within the detailed area. The problem is, the apllication is not setup properly, thus the users are entering data within the memo field as: location1 1/1/2005 1/1/2006
13
2680
by: Owen Jenkins | last post by:
Following on from an earlier post... I can reliably corrupt a record by doing the following ... Open two separate but identical front ends on one PC each linking to the same back end. Edit a records in one front end and leave it unsaved. Edit the same record in the other front end and save the change. Save the change in the first front end - this pops up the Write Conflict message to which I click Save.
4
4956
by: Folu | last post by:
Hello, Please how do I convert formatted text in a word document into markedup text in a memo field in MSaccess, and retain the formatting. I have created a form to display the contents of a word document, and intend to use Leban's RTF2 control to view the file's contents. Your response will be most valued.
2
4770
by: steph | last post by:
I have a table with 250 fields. Of course you are wondering why 250 fields... what could I possibly be storing in so many fields? I am using this table as a general import table for files that vary based on user selections. The input files are CSVs and can number from 2 to 175 columns. Each field is usually able to fit into a Text field (< 255 characters) but every now and then a longer field creeps in. since I don't know in which column...
0
1547
by: Kumba | last post by:
Hi all, Working on a pretty fancy access report that prints out a schedule of events in a two-column format, I've stumbled across the need for displaying formatted text into a field. Since I'm using Access 2000, it lacks the ability to do this natively, so I was wondering if anyone had a solution. I've made use of one of the controls of Lebans.com (TextWidthHeight one, rather spiffy), but it seems the RTF display controls there are for...
0
1270
by: Pete D. | last post by:
I haven't played with this but just a thought, I remember reading this is stored as HTML. I remember, http://allenbrowne.com/Access2007.html again this might be a hint. "CES" <ces@noemaill.comwrote in message news:u%23ilTzD7IHA.4204@TK2MSFTNGP03.phx.gbl...
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10155
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9995
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5431
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.