I want to know how M/S ACCESS database can be connected to html page hosted on local host

Recommended Answers

All 2 Replies

You will not be able to do this with HTML alone. You need to have server side scripting to be able to connect to a Database such as asp.net, php, asp, etc...

why not use mysql you can do it via wamp to run the php code.or use asp.net would be much easier to connect to a access db can runn it on IIS on you local machine.

with asp.net you could do something like that

`<%@ Import Namespace="System.Data.OleDb" %>

<script runat="server">
sub Page_Load
dim dbconn,sql,dbcomm,dbread
dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;
data source=" & server.mappath("northwind.mdb"))
sql="SELECT * FROM customers"
dbcomm=New OleDbCommand(sql,dbconn)
end sub


<form runat="server">
<asp:Repeater id="customers" runat="server">

<table border="1" width="100%">





find out more on http://www.w3schools.com

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.