Web Design and Development Forums

How to connect the microsoft access database using HTML page

This is a discussion on "How to connect the microsoft access database using HTML page" within the MSSQL & Access section. This forum, and the thread "How to connect the microsoft access database using HTML page are both part of the Databases category.


Go Back   Webforumz.com > Databases > MSSQL & Access

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Sep 15th, 2007, 10:18   #1 (permalink)
New Member
 
Join Date: Sep 2007
Location: canada
Age: 38
Posts: 2
How to connect the microsoft access database using HTML page

Dear All
i have create a database using microsoft access 2000 , and i want to query this database using an HTML page , so could any one send me the required code for connecing the MS access database with the HTML page.
mazenbluee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Sep 15th, 2007, 11:32   #2 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: How to connect the microsoft access database using HTML page

Quote:
Originally Posted by mazenbluee View Post
Dear All
i have create a database using microsoft access 2000 , and i want to query this database using an HTML page , so could any one send me the required code for connecing the MS access database with the HTML page.
HTML is not dynamic,
therefore you need to use an ASP page
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Sep 15th, 2007, 12:19   #3 (permalink)
New Member
 
Join Date: Sep 2007
Location: canada
Age: 38
Posts: 2
Re: How to connect the microsoft access database using HTML page

ok thnaks
then what is the necessary ASP code to connect to the database
mazenbluee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Sep 15th, 2007, 12:27   #4 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: How to connect the microsoft access database using HTML page

be best to learn ASP first.
to know how to manipulate database data
whichever you choose,
w3schools teaches all!
http://w3schools.com/asp/default.asp
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Sep 20th, 2007, 10:46   #5 (permalink)
Up'n'Coming Member
 
Join Date: Sep 2007
Location: Wales, UK
Age: 35
Posts: 75
Send a message via MSN to robbied72 Send a message via Skype™ to robbied72
Re: How to connect the microsoft access database using HTML page

As alex said learn some ASP as you will need to know how to query the database, once you have done that then get a connection string from here.
robbied72 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 21st, 2007, 06:49   #6 (permalink)
New Member
 
Join Date: Nov 2007
Location: Cape Town
Posts: 1
Re: How to connect the microsoft access database using HTML page

Quote:
Originally Posted by robbied72 View Post
As alex said learn some ASP as you will need to know how to query the database, once you have done that then get a connection string from here.
<html>
<head>
<title>Entitled Document</title>
<script language="JavaScript" >

function getSubmit()
{
var LastName;
var Firstn = names.value ;

var cn = new ActiveXObject("ADODB.Connection");
//here you must use forward slash to point strait
var strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:/clientDB.mdb";
var rs = new ActiveXObject("ADODB.Recordset");
//var SQL = "INSERT INTO Customers(FirstName, Surname)"
//+ " VALUES ( '"+ names.value +"', '" + surname.value +"')";
var SQL = "select Surname, DOB from Customers where FirstName = '" + Firstn + "'";

cn.Open(strConn);
rs.Open(SQL, cn);
surname.value = rs(0);
DOB.value = rs(1);
//alert(rs(0));
rs.Close();
cn.Close();


}

</script>
</head>
<body>

<input type="text" name="names" />
<input type="text" name="surname" />
<input type="text" name="DOB" />
<input type="button" value="submit" onclick="getSubmit()">

</body>
</html>
mkhizess is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Access Database Help? crackafaza MSSQL & Access 10 Dec 7th, 2007 04:04
ASP Multi users Access to Microsoft Access ish ASP Forum 0 Apr 26th, 2007 20:05
How to connect to a MS Access Database DJB MASTER MSSQL & Access 4 Aug 26th, 2006 20:04
Access a HTML InputBox through the Code-Page bwalker ASP.NET Forum 5 Nov 10th, 2005 12:58
Creating a Microsoft Access Database chris123 MSSQL & Access 2 May 17th, 2005 10:48



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 08:45.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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