Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Data type

Data type

Scheduled Pinned Locked Moved Database
databasehelp
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Peter Mayhew
    wrote on last edited by
    #1

    I'm displaying details on my website, which is taken from my MS access database. Which is simple enough. The details are shown in a table, which you can most probably tell from the extract of code. The problem is the "Address" appear on the site, but the "Details" do not. The difference is that on the database, the Address data type is text, and the Details is data type memo. I believe the problem lie with this difference in data type, and the If RS("Details") <> "" then. Hopefully someone can show me the light! <% If RS("Address") <> "" then Response.Write("

    ") Response.Write RS("Address") 'This does appear Response.Write("

    ") End if %> <% If RS("Details") <> "" then Response.Write("

    ") Response.Write RS("Details") 'This does not appear Response.Write("

    ") End if %> --- Peter M

    P 1 Reply Last reply
    0
    • P Peter Mayhew

      I'm displaying details on my website, which is taken from my MS access database. Which is simple enough. The details are shown in a table, which you can most probably tell from the extract of code. The problem is the "Address" appear on the site, but the "Details" do not. The difference is that on the database, the Address data type is text, and the Details is data type memo. I believe the problem lie with this difference in data type, and the If RS("Details") <> "" then. Hopefully someone can show me the light! <% If RS("Address") <> "" then Response.Write("

      ") Response.Write RS("Address") 'This does appear Response.Write("

      ") End if %> <% If RS("Details") <> "" then Response.Write("

      ") Response.Write RS("Details") 'This does not appear Response.Write("

      ") End if %> --- Peter M

      P Offline
      P Offline
      Peter Mayhew
      wrote on last edited by
      #2

      I've found out you cannot do comparisons with memo fields. You need to put it into a string to compare. Thanks to david wulff. --- Peter M

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups