Solved

access database

Posted on 2000-05-06
5
149 Views
Last Modified: 2010-05-02
well i have a access database and the database is on the server on internet i want to display the records from that database

is it possible and how please send me any samples if u  have
its urgent please

thanks
0
Comment
Question by:sonalchouhan
5 Comments
 
LVL 1

Expert Comment

by:4P
ID: 2783887
For the easiest quick solutions, see the "About static and dynamic HTML format" topic in the Access help.
0
 
LVL 14

Expert Comment

by:wsh2
ID: 2783905
You have two choices in getting the data from this MDB.

1. The Data has to be exposed by the Server.. via an ASP or a COM component.. that your program can link to.

2. Download the file to your hard drive and access it from there.

0
 

Expert Comment

by:pramesh
ID: 2785107
dim con as new ADODB.connection
con.open connectionstring
you can specify the url here.
http://www.somedomail.com
specify the path of the mdb file in recoredset.
0
 

Expert Comment

by:amarti
ID: 2785475
If you don't need user specify query, one simple solution is a freeware software that generates HTML pages from Access, like DBtoWEB for Windows 95/98/NT4.   You can find in:
http://www.endpoint.freeserve.co.uk/ 

0
 

Accepted Solution

by:
tq1962 earned 10 total points
ID: 2785478
<HTML>
<HEAD>

</HEAD>
<BODY>

<HTML>
<HEAD>

</HEAD>
<BODY>
<H1> Name List </H1>
<%

strDBFile=Server.Mappath("Telephone.mdb")
strSQL="SELECT * from personal ORDER BY Name"

strConn="{Driver=Microsoft Access Driver (*.mdb)}; " 

set oConn=strconn & "DBQ=" & Server.CreateObject("ADODB.Connection")
oConn.Open strConn
set oRs=oconn.execute(strsql)
ors.movefirst
If Not ors.EOF Then
%>
  <TABLE BORDER>
  <TR>
    <TD><B>Name</B></TD>
    <TD><B>Family</B></TD>
    <TD><B>Phone</B></TD>
  </TR>
<%
  Do While Not ors.EOF
%>
    <TR>
      <TD><%= ors("Name") %></TD>
      <TD><%= ors("Family") %></TD>
      <TD><%= ors("home") %></TD>
    </TR>
<%
    ors.MoveNext
  Loop
Else
%>
  <B>No records in recordset!</B>
<%
End If


ors.Close
oconn.Close
%>
</TABLE>
</BODY>
</HTML>

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now