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. Web Development
  3. Viewing Files From Access Database

Viewing Files From Access Database

Scheduled Pinned Locked Moved Web Development
questiondatabase
2 Posts 2 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I got to upload a file now i am trying to view the files data on the database on a ASP site. How do i do that? Thank you..

    A 1 Reply Last reply
    0
    • L Lost User

      I got to upload a file now i am trying to view the files data on the database on a ASP site. How do i do that? Thank you..

      A Offline
      A Offline
      allia
      wrote on last edited by
      #2

      A simple SQL SELECT statement would do. Dim sql sql = "SELECT the_file_field FROM your_database WHERE some_condition" ' Create a RecordSet Object Dim rs set rs = Server.CreateObject("ADODB.RecordSet") ' Retrieve the records rs.Open sql, Connection, adOpenForwardOnly, adLockOptimistic 'write it Response.write rs("the_file_field") Note: you need to open connection, check EOF, close connection. I reffer you to Chris Maunder's [Article on Accessing Microsoft Access databases in ASP using ADO](http://Article on Accessing Microsoft Access databases in ASP using ADO)[^] I live to code.

      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