Computing.Net > Forums > Web Development > Using MS Access with Dreamweaver MX

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Using MS Access with Dreamweaver MX

Reply to Message Icon

Name: mabi
Date: September 8, 2005 at 13:50:36 Pacific
OS: Win XP
CPU/Ram: P4, 512
Comment:

I am new to DW MX. Trying to get a simple database to display records. I do the steps detailed in the tutorials and the query tests good (displays the desired records). However, when I upload the web page and view in a browser the page is blank. Any help would be appreciated ...Thanks

<head>
<title>Title here</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" media="all" />
</head>

<body>
<div id="contain">
<div id="content">
<div id="js"> <script type="text/javascript" src="../js/1.js"></script></div>
<div id="arc">
<h2>Here</h2>

<%@LANGUAGE="VBSCRIPT"%>

<%
Dim first
Dim first_numRows

Set first = Server.CreateObject("ADODB.Recordset")
first.ActiveConnection = MM_first_STRING
first.Source = "SELECT Time, Date, Town, State first ORDER BY Time DESC"
first.CursorType = 0
first.CursorLocation = 2
first.LockType = 1
first.Open()

first_numRows = 0
%>
<table width="450px" border="1" cellpadding="2" cellspacing="2">
<tr>
<td>Time</td>
<td>Date</td>
<td>Town</td>
<td>State</td>
</tr>
<tr>
<td><%=(first.Fields.Item("Time").Value)%></td>
<td><%=(first.Fields.Item("Date").Value)%></td>
<td><%=(first.Fields.Item("Town").Value)%></td>
<td><%=(first.Fields.Item("State").Value)%></td>
</tr>
</table> </div>
</div></div>
</div>

</body>
</html>

<%
first.Close()
Set first = Nothing
%>



Sponsored Link
Ads by Google

Response Number 1
Name: suspect52732
Date: September 9, 2005 at 21:10:41 Pacific
Reply:

Well, you probably havnt had a response because this is a little difficult to troubleshoot. I just took a class on Dreamweaver and Access, ASP.NET. I think you would have a much easier time using FrontPage and asp, although alittle different, it is driven by simple to follow wizards. If its a must to use dreamweaver, I would check that you are uploading the local file to the remote site, then switch to remote view and open that uploaded file, then view it. Also look at this:


------

<%@LANGUAGE="VBSCRIPT"%>

<%
Dim first
Dim first_numRows

Set first = Server.CreateObject("ADODB.Recordset")
first.ActiveConnection = MM_first_STRING
first.Source = "SELECT Time, Date, Town, State first ORDER BY Time DESC"
first.CursorType = 0
first.CursorLocation = 2
first.LockType = 1
first.Open()

first_numRows = 0
%>

<head>
<title>Title here</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" media="all" />
</head>

<body>
<div id="contain">
<div id="content">
<div id="js"> <script type="text/javascript" src="../js/1.js"></script></div>
<div id="arc">
<h2>Here</h2>


<table width="450px" border="1" cellpadding="2" cellspacing="2">
<tr>
<td>Time</td>
<td>Date</td>
<td>Town</td>
<td>State</td>
</tr>
<tr>
<td><%=(first.Fields.Item("Time").Value)%></td>
<td><%=(first.Fields.Item("Date").Value)%></td>
<td><%=(first.Fields.Item("Town").Value)%></td>
<td><%=(first.Fields.Item("State").Value)%></td>
</tr>
</table> </div>
</div></div>
</div>

</body>
</html>

<%
first.Close()
Set first = Nothing
%>


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Using MS Access with Dreamweaver MX

Dreamweaver MX Updates www.computing.net/answers/webdevel/dreamweaver-mx-updates/1431.html

validate form with rollover button www.computing.net/answers/webdevel/validate-form-with-rollover-button/99.html

Can I disable mouse wheel scrolling www.computing.net/answers/webdevel/can-i-disable-mouse-wheel-scrolling/174.html