Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Dudes! Great site. You've saved me hours and hours...and I have just started using your site. I've already passed your URL onto my entire company. Keep up the awesome work. Bingo-bango..."

Geography

Where in the world do Tek-Tips members come from?
mkphan (IS/IT--Management)
9 Jan 01 14:16
Hi,

I currently have an Access 2000 database and would like to connect it to the web.

Secondly, how do I access the database through a webpage?

What are the requirements and what needs to be done?

Thanks
Ovatvvon (Programmer)
27 Mar 01 12:47
To make it available to the web, first converty it to "prior version" through the tools menu and convert to previous version. Next, you need to use ado to connect to the database in server side scripting...ex:

<%
  dim sql
  sql = "SELECT * FROM myDBtable WHERE ((myDBtable.oneColumn)="1");"

  set conn = Server.CreateObject("ADODB.Connection")
  DSNtemp = "DRIVER={Microsoft Access Driver (*.mdb)};"
  DSNtemp = DSNtemp & "C:\InetPub\wwwroot\databaseFolder\myDB.mdb;"
  conn.Open DSNtemp
  Set rs = Server.CreateObject("ADODB.Recordset")
  rs.open sql, conn, 3, 3

  rs.close
  set rs = nothing
  conn.close
  set conn = nothing

%>

DBQ is obviously where your converted to 1997 database lays on your hard drive tree, and anytime you want to work with the files within the database....inside the connection string use the recordset identifier to pull it up. Let's say you want the first and last name printed to the web page where myDBtable.oneColumn is equal to "1", as declared in the sql statement. then inside the connection string, write this code...

  response.write rs("firstname") & " " & rs("lastname")

where firstname and lastname are the names of the table fields. does that answer your questions? if not, write back and I'll try to make it more clear.

 Sincerely,
     Jim
Guest (Visitor)
24 May 01 8:10
Do you know any good books about connecting access to web pages, i really need a step by step guide i can follow to design this web that is connected to access. so far i haven't found anything. I would be very grateful for any help you could give me. thanks
Ovatvvon (Programmer)
24 May 01 11:59
Anything you need to know you can find at the web workshop on microsoft's site for free!

http://msdn.micrsoft.com/workshop

If you still cannot find the answers you are looking for...feel free to email me at jimbob550@hotmail.com. I will try to answer your questions as complete and quickly as possible. But do try to learn it first as I usually work constantly and am busy a lot. But I will try to answer any Q's you may have.

  -Ovatvvon
Guest (Visitor)
11 Feb 02 11:07
I want to connect ms access 2000 and Visual Basic through dao control. Please tell me where to find the required driver

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close