MS Access Memo Field and ASP

Ask a Question related to ASP, Design and Development.

  1. #1

    Default MS Access Memo Field and ASP

    I have a memo field in a MS Access table. The contents of the field may look
    like this:

    1. This is number one
    2. This is number 2

    3. Skipping lines is fun if your #3

    But when I write it out to my web page using my ASP code {something like:
    rsJobs.Fields("notes") }

    it looks like this on the web page:

    1. This is number one 2. This is number 2 3.Skipping
    lines is fun if your #3

    How can I make it show up like it is in the memo field - it seems like the
    carriage return / line feeds are being ignored or translated into spaces or
    something

    Can anyone help ?

    Thanks,
    Jim


    Jim Plante Guest

  2. Similar Questions and Discussions

    1. #38458 [Com]: Fails to get values of fields following a MEMO type field in MS Access
      ID: 38458 Comment by: johnc at inkjetinc dot com Reported By: costas at meezon dot com Status: Assigned Bug...
    2. Format Access memo field?
      Hi all, Just trying to figure out how to format a returned MS Access memo field with Coldfusion. Nothing special. Just want it to retain returns...
    3. Memo Field with Access
      Hopefully someone can help me with this. I have a memo field in Access, I type for example into the text box on the webpage: (ignore the >) *...
    4. problem displaying MEMO field from ACCESS 2000 on WINDOWS 20003
      Hi, I have been using access 2000 for two years on WINDOWS NT to display dynamic aweb page using ASP My ISP has now changed to Windows 2003,...
    5. How do I get an Access memo field over several lines in HTML?
      I'm trying to replace vbCrLf with <BR>, but it doesn't work for some reason. Could someone please correct the code, or tell me of a better...
  3. #2

    Default Re: MS Access Memo Field and ASP

    HTML doesn't respect white space -- imagine if it did?

    <table>
    <tr>
    <td>foo</td>
    </tr>
    </table>

    There would be a bunch of tabs and carriage returns rendered to the browser!
    I'm glad HTML disregards this white space, otherwise we'd go absolutely
    nutso maintaining strictly coded (and hence unreadable) HTML pages ... and
    presentation would be tied to coding, yuck. The whole beauty of HTML is
    that the code doesn't have to look anything like the presentation.

    Remember that an ASP page is simply returning HTML to the browser, and that
    when your memo column contains

    line 1
    line 2

    This is what gets inserted directly into the HTML. So, to replace white
    space, see [url]http://www.aspfaq.com/2188[/url]







    "Jim Plante" <jim@repointing.com> wrote in message
    news:JE2dncJrjaMcuayiU-KYvw@comcast.com...
    > I have a memo field in a MS Access table. The contents of the field may
    look
    > like this:
    >
    > 1. This is number one
    > 2. This is number 2
    >
    > 3. Skipping lines is fun if your #3
    >
    > But when I write it out to my web page using my ASP code {something like:
    > rsJobs.Fields("notes") }
    >
    > it looks like this on the web page:
    >
    > 1. This is number one 2. This is number 2 3.Skipping
    > lines is fun if your #3
    >
    > How can I make it show up like it is in the memo field - it seems like the
    > carriage return / line feeds are being ignored or translated into spaces
    or
    > something
    >
    > Can anyone help ?
    >
    > Thanks,
    > Jim
    >
    >

    Aaron Bertrand - MVP Guest

  4. #3

    Default MS Access Memo Field and ASP

    <%= replace(rs("memoField"),vbcrlf,"<br>") %>

    or

    <p><%= replace(rs("memoField"),vbcrlf,"</p><p>") %></p>

    >-----Original Message-----
    >I have a memo field in a MS Access table. The contents of
    the field may look
    >like this:
    >
    >1. This is number one
    >2. This is number 2
    >
    >3. Skipping lines is fun if your #3
    >
    >But when I write it out to my web page using my ASP code
    {something like:
    >rsJobs.Fields("notes") }
    >
    >it looks like this on the web page:
    >
    >1. This is number one 2. This is number 2 3.Skipping
    >lines is fun if your #3
    >
    >How can I make it show up like it is in the memo field -
    it seems like the
    >carriage return / line feeds are being ignored or
    translated into spaces or
    >something
    >
    >Can anyone help ?
    >
    >Thanks,
    >Jim
    >
    >
    >.
    >
    MePadre Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139